You are here

class SmsMessageResultStatus in SMS Framework 8

Same name and namespace in other branches
  1. 2.x src/Message/SmsMessageResultStatus.php \Drupal\sms\Message\SmsMessageResultStatus
  2. 2.1.x src/Message/SmsMessageResultStatus.php \Drupal\sms\Message\SmsMessageResultStatus

Defines states for SMS message results.

Usually setting a status on a result indicates something went wrong with the entire transaction.

Hierarchy

Expanded class hierarchy of SmsMessageResultStatus

1 file declares its use of SmsMessageResultStatus
SmsFrameworkMessageResultEntityTest.php in tests/src/Kernel/SmsFrameworkMessageResultEntityTest.php

File

src/Message/SmsMessageResultStatus.php, line 11

Namespace

Drupal\sms\Message
View source
class SmsMessageResultStatus extends SmsMessageStatus {

  /**
   * Account error.
   *
   * Some configuration is required that can only be resolved on the gateway
   * end.
   */
  const ACCOUNT_ERROR = 'account_error';

  /**
   * Too many requests.
   */
  const EXCESSIVE_REQUESTS = 'flooded';

  /**
   * Message could not be processed due to low credit.
   */
  const NO_CREDIT = 'no_credit';

  /**
   * Indicates the sender ID is invalid.
   */
  const INVALID_SENDER = 'invalid_sender';

  /**
   * Failed to authenticate with gateway.
   */
  const AUTHENTICATION = 'authentication';

  /**
   * Invalid or missing request parameters.
   */
  const PARAMETERS = 'parameters';

}

Members

Namesort descending Modifiers Type Description Overrides
SmsMessageResultStatus::ACCOUNT_ERROR constant Account error.
SmsMessageResultStatus::AUTHENTICATION constant Failed to authenticate with gateway.
SmsMessageResultStatus::EXCESSIVE_REQUESTS constant Too many requests.
SmsMessageResultStatus::INVALID_SENDER constant Indicates the sender ID is invalid.
SmsMessageResultStatus::NO_CREDIT constant Message could not be processed due to low credit.
SmsMessageResultStatus::PARAMETERS constant Invalid or missing request parameters.
SmsMessageStatus::ERROR constant Message could not be processed due to an unknown problem with the gateway.