hyphenate_SDK3.0  3.8.6.1
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

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)
 

Static Public Attributes

static final Parcelable.Creator< EMCmdMessageBodyCREATOR
 

Detailed Description

Command message body

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

Constructor & Destructor Documentation

◆ EMCmdMessageBody()

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

Construct command message

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 whether current cmd msg only deliver to online users. False as default, means deliver to all users

Parameters
onlineOnlyWhether to deliver to online users only

◆ 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
Boolean, return true means only deliver to online user

◆ toString()

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

Get the action of cmd message

Returns
String

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:50

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