Package io.rong.message.custommessage
Class CustomMediaMessageContent
-
- All Implemented Interfaces:
public class CustomMediaMessageContent
Custom media message
-
-
Field Summary
Fields Modifier and Type Field Description public final HashMap<String, Object>
fields
public String
objectName
public final static Creator<CustomMediaMessageContent>
CREATOR
-
Constructor Summary
Constructors Constructor Description CustomMediaMessageContent(Array<byte> data)
CustomMediaMessageContent(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 Parcelable objects. List<String>
getSearchableWord()
CustomMessageType
type()
void
setFields(Map<String, Object> fields)
void
setSearchableWords(List<String> searchableWords)
-
-
Constructor Detail
-
CustomMediaMessageContent
CustomMediaMessageContent(Array<byte> data)
-
CustomMediaMessageContent
CustomMediaMessageContent(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 into which the object is written.flags
- Additional flags about how the object should be written, possibly 0 or PARCELABLE_WRITE_RETURN_VALUE.
-
describeContents
int describeContents()
Describes the type of special objects included in the arrangement information of Parcelable objects.
- Returns:
A flag indicating the arrangement of the special object type collection in the Parcelable object.
-
getSearchableWord
List<String> getSearchableWord()
-
type
CustomMessageType type()
-
setFields
void setFields(Map<String, Object> fields)
-
setSearchableWords
void setSearchableWords(List<String> searchableWords)
-
-
-
-