awValidateEvent
BrokerError awValidateEvent(
BrokerClient client,
BrokerEvent event);
client | The Broker client whose context is to be used to validate the event. |
event | The event to be validated. |
Validates the event in the context of the specified client. This function checks if the event would be valid for a client other than the one for which it was created. An event passes validation if its event type exists on the Broker and if the field names and types match the Broker's definition for the event.
Possible BrokerError major codes | Meaning |
AW_ERROR_FIELD_TYPE_MISMATCH | The event did not pass validation. |
AW_ERROR_INVALID_CLIENT | The client is invalid or, if client is NULL, the event is not type-checked. |
AW_ERROR_INVALID_EVENT | The event is invalid. |