Customization of Diarkis Module
Customizing Each Feature of the Diarkis Module
/*
* Implementation for customizing the DirectMessage-related processing on the application side.
* On... related callbacks will be triggered upon receiving DirectMessage-related data, allowing the application-specific processing to be implemented.
* In this sample, the received messages are displayed on the console.
*/
class DirectMessageSimple : public DiarkisDirectMessageBase
{
public:
DirectMessageSimple() : DiarkisDirectMessageBase() {}
virtual ~DirectMessageSimple() {}
bool IsAnyMessageReceived() const
{
return anyMessageReceived_;
}
private:
/**
* @~english
* @brief Get the callback event that is called when disconnecting DirectMessage notifications.
* @details Triggered when a DirectMessage Disconnect notification (Push from the server) is sent.
* @~
*/
virtual void OnDisconnect(const DiarkisDirectMessageEventArgs& e) override
{
...
}
/**
* @~english
* @brief Get the callback event that is called when a DirectMessage is sent from another remote user.
* @details Triggered when a DirectMessage Message notification (Push from the server) is sent.
* @~
*/
virtual void OnMessage(const DiarkisDirectMessageEventArgs& e) override
{
...
anyMessageReceived_ = true;
}
private:
bool anyMessageReceived_ = false;
};Customizing DiarkisInterfaceBase
Important Notes
最終更新
役に立ちましたか?

