Agora C++ API Reference for All Platforms
|
Public Member Functions | |
virtual | ~IMessage () |
virtual int64_t | getMessageId () const =0 |
virtual int | getMessageType () const =0 |
virtual void | setText (const char *str)=0 |
virtual const char * | getText () const =0 |
virtual const unsigned char * | getRawMessageData () const =0 |
virtual int | getRawMessageLength () const =0 |
virtual void | setMessageType (int32_t type)=0 |
virtual void | setRawMessage (const uint8_t *data, int length)=0 |
virtual void | release ()=0 |
Static Public Member Functions | |
static IMessage * | createMessage () |
The IMessage class.
|
inlinevirtual |
|
static |
|
pure virtual |
Gets the ID of the message.
|
pure virtual |
Gets the message type.
|
pure virtual |
Sets the content of the text message, or the text description of the raw message.
str | The content of the text message, or the text description of the raw message. The maximum length is 32 KB. |
|
pure virtual |
Gets the content of the text messsage, or the text description of the raw message.
|
pure virtual |
Get pointer of custom raw message
|
pure virtual |
Get length of custom raw message
|
pure virtual |
Set message type
|
pure virtual |
Set raw binary message
|
pure virtual |
Releases the IMessage instance.