diff options
Diffstat (limited to 'res/ari/ari_model_validators.h')
-rw-r--r-- | res/ari/ari_model_validators.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/res/ari/ari_model_validators.h b/res/ari/ari_model_validators.h index 326693950..ffe003903 100644 --- a/res/ari/ari_model_validators.h +++ b/res/ari/ari_model_validators.h @@ -499,6 +499,24 @@ int ast_ari_validate_device_state(struct ast_json *json); ari_validator ast_ari_validate_device_state_fn(void); /*! + * \brief Validator for Mailbox. + * + * Represents the state of a mailbox. + * + * \param json JSON object to validate. + * \returns True (non-zero) if valid. + * \returns False (zero) if invalid. + */ +int ast_ari_validate_mailbox(struct ast_json *json); + +/*! + * \brief Function pointer to ast_ari_validate_mailbox(). + * + * See \ref ast_ari_model_validators.h for more details. + */ +ari_validator ast_ari_validate_mailbox_fn(void); + +/*! * \brief Validator for ApplicationReplaced. * * Notification that another WebSocket has taken over for an application. @@ -1111,6 +1129,10 @@ ari_validator ast_ari_validate_application_fn(void); * DeviceState * - name: string (required) * - state: string (required) + * Mailbox + * - name: string (required) + * - new_messages: int (required) + * - old_messages: int (required) * ApplicationReplaced * - type: string (required) * - application: string (required) |