java.lang.Object
fr.paris.lutece.plugins.wiki.modules.ai.service.rate.RateLimitResult

public class RateLimitResult extends Object
  • Constructor Details

    • RateLimitResult

      public RateLimitResult(boolean allowed, String errorMessage)
      Constructor
      Parameters:
      allowed - whether the request is allowed
      errorMessage - error message if request is denied
  • Method Details

    • isAllowed

      public boolean isAllowed()
      Check if the request is allowed
      Returns:
      true if allowed
    • getErrorMessage

      public String getErrorMessage()
      Get the error message
      Returns:
      the error message