Interface for sending/receiving messages between users (also admin to user notifications) 更多...
#include <XmppMessages.h>
Public 成员函数 | |
| DECLARE_MULTICAST_DELEGATE_ThreeParams (FOnXmppMessageReceived, const TSharedRef< IXmppConnection > &, const FXmppUserJid &, const TSharedRef< FXmppMessage > &) | |
| Delegate callback for when a new message is received 更多... | |
| virtual FOnXmppMessageReceived & | OnReceiveMessage ()=0 |
| virtual bool | SendMessage (const FXmppUserJid &RecipientId, const FString &Type, const FString &Payload, bool bPayloadIsSerializedJson=false)=0 |
| Send a message to a user via xmpp service 更多... | |
| virtual | ~IXmppMessages () |
| destructor | |
Interface for sending/receiving messages between users (also admin to user notifications)
| IXmppMessages::DECLARE_MULTICAST_DELEGATE_ThreeParams | ( | FOnXmppMessageReceived | , |
| const TSharedRef< IXmppConnection > & | , | ||
| const FXmppUserJid & | , | ||
| const TSharedRef< FXmppMessage > & | |||
| ) |
Delegate callback for when a new message is received
| Connection | the xmpp connection this message was received on |
| FromId | id of user that sent the message (might be admin) |
| Message | data that was received |
|
pure virtual |
|
pure virtual |
Send a message to a user via xmpp service
| RecipientId | user to send message to (must be online) |
| Type | message type |
| Payload | message data to send |