IResponseBroker
- Last UpdatedFeb 24, 2021
- 1 minute read
This interface acts as a Response Broker to send response back to AVEVA Mobile Operator application. The interface exposes the below methods:
void SetParsedData(bool success, object data);
Use this method to set data on response. This method sets the parsed data as an object and sets the success/failure status of the request.
void SetParsedData(bool success, object data, object customData);
Use this method to set data on response. This method sets the parsed data as an object, sets the success/failure status of the request and custom data if any as an object.
void SetParsedData(bool success, object data, object customData, string customError);
Use this method to set data on response. This method sets the parsed data as an object, sets the success/failure status of the request, custom data if any as an object and custom error message as a string.
Note: The custom error message will be displayed in the AVEVA Mobile Operator application only if the success status of the request has been to false.
void Send();
Use this method to send the Response that has been previously set.
Note: The IInitializeTrigger, IConnectTrigger, IDataTrigger and IDisconnectTrigger interfaces implement the IResponseBroker interface and act as a Response broker for each of the Initialize, connect, read and disconnect request from AVEVA Mobile Operator application.