hyphenate_SDK3.0 3.7.6.3
hyphenate java IM SDK
Public Member Functions | Static Public Attributes | List of all members
com.hyphenate.chat.EMCmdMessageBody Class Reference
Inheritance diagram for com.hyphenate.chat.EMCmdMessageBody:
com.hyphenate.chat.EMMessageBody com.hyphenate.chat.EMBase< EMAMessageBody >

Public Member Functions

 EMCmdMessageBody (String action)
 
 EMCmdMessageBody (String action, Map< String, String > params)
 
String action ()
 
Map< String, String > getParams ()
 
boolean isDeliverOnlineOnly ()
 
void deliverOnlineOnly (boolean onlineOnly)
 
String toString ()
 
int describeContents ()
 
void writeToParcel (Parcel dest, int flags)
 
- Public Member Functions inherited from com.hyphenate.chat.EMBase< EMAMessageBody >
boolean equals (Object o)
 
int hashCode ()
 

Static Public Attributes

static final Parcelable.Creator< EMCmdMessageBodyCREATOR
 

Additional Inherited Members

- Protected Attributes inherited from com.hyphenate.chat.EMBase< EMAMessageBody >
emaObject
 

Detailed Description

create a command message

EMCmdMessageBody body = new EMCmdMessageBody("delete", null);

Constructor & Destructor Documentation

◆ EMCmdMessageBody()

com.hyphenate.chat.EMCmdMessageBody.EMCmdMessageBody ( String  action)

construct EMCmdMessageBody

Parameters
actioncommand

Member Function Documentation

◆ action()

String com.hyphenate.chat.EMCmdMessageBody.action ( )

get the action

Returns
the action

◆ deliverOnlineOnly()

void com.hyphenate.chat.EMCmdMessageBody.deliverOnlineOnly ( boolean  onlineOnly)

Set current cmd msg only deliver to online users. false as default, means deliver to all users.

Parameters
onlineOnly

◆ getParams()

Map< String, String > com.hyphenate.chat.EMCmdMessageBody.getParams ( )

Get the params map

Returns
Map
Deprecated:
Use EMMessage#ext() instead

◆ isDeliverOnlineOnly()

boolean com.hyphenate.chat.EMCmdMessageBody.isDeliverOnlineOnly ( )

Check whether this cmd msg is delivered to online users.

Returns

Member Data Documentation

◆ CREATOR

final Parcelable.Creator<EMCmdMessageBody> com.hyphenate.chat.EMCmdMessageBody.CREATOR
static
Initial value:
= new Parcelable.Creator<EMCmdMessageBody>() {
public EMCmdMessageBody createFromParcel(Parcel in) {
return new EMCmdMessageBody(in);
}
public EMCmdMessageBody[] newArray(int size) {
return new EMCmdMessageBody[size];
}
}
EMCmdMessageBody(String action)
Definition: EMCmdMessageBody.java:48

The documentation for this class was generated from the following file: