Application may implement an application client class inheriting from OmmLoginCredentialConsumerClient. In its own class, application needs to override callback methods it desires to use for item processing. Default empty callback methods are implemented by OmmLoginCredentialConsumerClient class.
The following code snippet shows basic usage of OmmLoginCredentialConsumerClient class to print recevied messages to screen.
{
};
void AppClient::onLoginCredentialRenewal( const OmmConsumerEvent& event )
{
LoginMsgCredentialRenewal credentials;
OmmConsumer& consumer = event.getClosure().getConsumer();
credentials.userName("<USER NAME>");
consumer.renewLoginCredentials(credentials);
}
virtual void onLoginCredentialRenewal(const OmmConsumerEvent &consumerEvent)
OmmLoginCredentialConsumerClient()
Definition at line 62 of file OmmLoginCredentialConsumerClient.h.