Package io.rong.imlib.chatroom.message
Class ChatRoomKVNotiMessage
-
- All Implemented Interfaces:
-
android.os.Parcelable
public class ChatRoomKVNotiMessage extends MessageContent聊天室自定义属性通知消息
不要随意构造此类消息发送,调用设置或者删除接口时会自动构建。 此消息不存储不计入未读消息数。
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumChatRoomKVNotiMessage.NotificationType
-
Field Summary
Fields Modifier and Type Field Description public Stringkeypublic Stringvaluepublic inttypepublic final static Parcelable.Creator<ChatRoomKVNotiMessage>CREATORpublic UserInfouserInfopublic MentionedInfomentionedInfopublic booleanisDestructpublic longdestructTimeprotected final static List<String>BASE_KEYSpublic MessageAuditInfoauditInfopublic Array<byte>rawJsonDatapublic final static intCONTENTS_FILE_DESCRIPTORpublic final static intPARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
Constructors Constructor Description ChatRoomKVNotiMessage(Array<byte> data)ChatRoomKVNotiMessage(Parcel in)
-
Method Summary
Modifier and Type Method Description StringgetKey()获取聊天室存储消息键值 voidsetKey(String key)设置聊天室存储消息键值 StringgetValue()获取聊天室存储消息数据 voidsetValue(String value)设置聊天室存储消息数据 intgetType()获取聊天室存储消息类型 voidsetType(int type)static ChatRoomKVNotiMessageobtain(String key, String value, int type, String extra)static ChatRoomKVNotiMessageobtain(String key, String value, ChatRoomKVNotiMessage.NotificationType type, String extra)Array<byte>encode()voidwriteToParcel(Parcel dest, int flags)intdescribeContents()voidsetType(ChatRoomKVNotiMessage.NotificationType type)设置聊天室存储消息类型 static StringgetTAG()-
Methods inherited from class io.rong.imlib.model.MessageContent
getAuditInfo, getBaseJsonObject, getDestructTime, getExtra, getJSONDestructInfo, getJSONUserInfo, getJsonMentionInfo, getMentionedInfo, getRawJsonData, getSearchableWord, getUserInfo, isDestruct, parseBaseJsonObject, parseJsonToDestructInfo, parseJsonToMentionInfo, parseJsonToUserInfo, readFromBaseInfoParcel, setAuditInfo, setDestruct, setDestructTime, setExtra, setMentionedInfo, setRawJsonData, setUserInfo, writeToBaseInfoParcel -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ChatRoomKVNotiMessage
ChatRoomKVNotiMessage(Array<byte> data)
-
ChatRoomKVNotiMessage
ChatRoomKVNotiMessage(Parcel in)
-
-
Method Detail
-
getType
int getType()
获取聊天室存储消息类型
- Returns:
聊天室存储消息类型
-
setType
@Deprecated() void setType(int type)
-
obtain
@Deprecated() static ChatRoomKVNotiMessage obtain(String key, String value, int type, String extra)
-
obtain
static ChatRoomKVNotiMessage obtain(String key, String value, ChatRoomKVNotiMessage.NotificationType type, String extra)
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
setType
void setType(ChatRoomKVNotiMessage.NotificationType type)
设置聊天室存储消息类型
- Parameters:
type- 聊天室存储消息类型
-
-
-
-