Easemob Windows SDK
|
Public Types | |
typedef std::pair< std::string, std::string > | EMCmdParam |
typedef std::vector< EMCmdParam > | EMCmdParams |
![]() | |
enum | EMMessageBodyType { TEXT, IMAGE, VIDEO, LOCATION, VOICE, FILE, COMMAND } |
Public Member Functions | |
EMCmdMessageBody (const std::string &action) | |
Command message body constructor. More... | |
virtual | ~EMCmdMessageBody () |
Class destructor. More... | |
const std::string & | action () const |
Get command action. More... | |
void | setAction (const std::string &action) |
Set command action. More... | |
const EMCmdParams & | params () const |
Get command parameters. More... | |
void | setParams (const EMCmdParams &) |
Set command parameters. More... | |
![]() | |
EMMessageBody (EMMessageBodyType=TEXT) | |
Message body constructor. More... | |
virtual | ~EMMessageBody () |
Class destructor. More... | |
EMMessageBodyType | type () const |
Get message body type. More... | |
![]() | |
template<typename T > | |
T * | cast () |
Protected Member Functions | |
EMCmdMessageBody () | |
Protected constructor. More... | |
Friends | |
class | EMCmdMessageBodyPrivate |
class | EMMessageEncoder |
Additional Inherited Members | |
![]() | |
EMMessageBodyPrivate * | mBodyPrivate |
EMMessageBodyType | mType |
easemob::EMCmdMessageBody::EMCmdMessageBody | ( | const std::string & | action | ) |
Command message body constructor.
Command | action |
Command | parameters |
|
virtual |
Class destructor.
NA |
|
protected |
Protected constructor.
NA |
const std::string& easemob::EMCmdMessageBody::action | ( | ) | const |
Get command action.
NA |
const EMCmdParams& easemob::EMCmdMessageBody::params | ( | ) | const |
Get command parameters.
NA |
|
inline |
Set command action.
The | command action. |
void easemob::EMCmdMessageBody::setParams | ( | const EMCmdParams & | ) |
Set command parameters.
Note: User should not use command parameters any more, and use EMMessage's attribute instead.
The | command parameters. |