vx_evt_user_to_user_message
Learn about messaging in Vivox Core.
Read time 1 minuteLast updated 20 hours ago
Raised when a message from another user is received. More...
#include <VxcEvents.h>Public Attributes
Name | |
|---|---|
| vx_evt_base_t | base The common properties for all events. |
| VX_HANDLE | account_handle The handle returned from a successful account login request. |
| char * | from_uri The URI of the account sending the message. |
| char * | encoded_uri_with_tag The encoded URI for the sending user with the tag. |
| char * | message_body The content of the message being received, UTF-8 encoded. |
| char * | message_id The id of the message. |
| char * | language The language (default NULL, implies "en"). |
| char * | application_stanza_namespace The namespace of the custom application stanza (optional, default NULL). |
| char * | application_stanza_body The custom application stanza body (optional, default NULL). |
| char * | from_displayname The displayname, if the from_uri had a displayname. |
Detailed Description
Raised when a message from another user is received. See: vx_req_account_send_message Note: V5 only.struct vx_evt_user_to_user_message;
Public Attributes Documentation
variable base
The common properties for all events.vx_evt_base_t base;
variable account_handle
The handle returned from a successful account login request. See: vx_req_account_anonymous_loginVX_HANDLE account_handle;
variable from_uri
The URI of the account sending the message.char * from_uri;
variable encoded_uri_with_tag
The encoded URI for the sending user with the tag. This uniquely identifies users that might be logged in with the same account name from multiple devices (Multi-Login).char * encoded_uri_with_tag;
variable message_body
The content of the message being received, UTF-8 encoded.char * message_body;
variable message_id
The id of the message. It is empty unless chat history is enabled.char * message_id;
variable language
The language (default NULL, implies "en").char * language;
variable application_stanza_namespace
The namespace of the custom application stanza (optional, default NULL).char * application_stanza_namespace;
variable application_stanza_body
The custom application stanza body (optional, default NULL).char * application_stanza_body;
variable from_displayname
The displayname, if the from_uri had a displayname.char * from_displayname;