Package io.rong.message.custommessage
Class CustomMessageContent
-
- All Implemented Interfaces:
public class CustomMessageContent
Custom Message
-
-
Field Summary
Fields Modifier and Type Field Description public final HashMap<String, Object>
fields
public String
objectName
public final static Creator<CustomMessageContent>
CREATOR
-
Constructor Summary
Constructors Constructor Description CustomMessageContent(Array<byte> data)
CustomMessageContent(Parcel in)
Constructor.
-
Method Summary
Modifier and Type Method Description HashMap<String, Object>
getFields()
String
getObjectName()
void
setObjectName(String objectName)
Array<byte>
encode()
Serializes the local message object into message data. void
writeToParcel(Parcel dest, int flags)
Writes the class data into the provided Parcel. int
describeContents()
Describes the type of special objects included in the arrangement information of the Parcelable object. List<String>
getSearchableWord()
CustomMessageType
type()
void
setFields(Map<String, Object> fields)
void
setSearchableWords(List<String> searchableWords)
-
-
Constructor Detail
-
CustomMessageContent
CustomMessageContent(Array<byte> data)
-
CustomMessageContent
CustomMessageContent(Parcel in)
Constructor.- Parameters:
in
- The Parcel object passed during initialization.
-
-
Method Detail
-
getFields
HashMap<String, Object> getFields()
-
getObjectName
String getObjectName()
-
setObjectName
void setObjectName(String objectName)
-
encode
Array<byte> encode()
Serializes the local message object into message data.
- Returns:
The message data.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
Writes the class data into the provided Parcel.
- Parameters:
dest
- The Parcel where the object is written.flags
- Additional flags on how the object is written, which can be 0 or PARCELABLE_WRITE_RETURN_VALUE.
-
describeContents
int describeContents()
Describes the type of special objects included in the arrangement information of the Parcelable object.
- Returns:
A flag indicating the arrangement of the special object type collection of the Parcelable object.
-
getSearchableWord
List<String> getSearchableWord()
-
type
CustomMessageType type()
-
setFields
void setFields(Map<String, Object> fields)
-
setSearchableWords
void setSearchableWords(List<String> searchableWords)
-
-
-
-