hyphenate_SDK3.0  3.5.6
hyphenatejavaIMSDK
Public Member Functions | Static Public Attributes | List of all members
com.hyphenate.chat.EMCmdMessageBody Class Reference
Inheritance diagram for com.hyphenate.chat.EMCmdMessageBody:
Inheritance graph
[legend]
Collaboration diagram for com.hyphenate.chat.EMCmdMessageBody:
Collaboration graph
[legend]

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

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

construct EMCmdMessageBody

Parameters
actioncommand

Member Function Documentation

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

get the action

Returns
the action
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
boolean com.hyphenate.chat.EMCmdMessageBody.isDeliverOnlineOnly ( )

Check whether this cmd msg is delivered to online users.

Returns

Member Data Documentation

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];
}
}

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