public class DiscussionNotificationMessage extends NotificationMessage
通知消息类,表示消息已经被收到,不会存入消息历史记录。
限定符和类型 | 字段和说明 |
---|---|
static android.os.Parcelable.Creator<DiscussionNotificationMessage> |
CREATOR |
构造器和说明 |
---|
DiscussionNotificationMessage() |
DiscussionNotificationMessage(byte[] data) |
DiscussionNotificationMessage(android.os.Parcel in) |
限定符和类型 | 方法和说明 |
---|---|
int |
describeContents()
描述了包含在 Parcelable 对象排列信息中的特殊对象的类型。
|
byte[] |
encode()
序列化需要传输的数据。
|
java.lang.String |
getExtension()
获取被加入讨论组用户 id,多个用户 id 以逗号分割。
|
java.lang.String |
getOperator()
获取当前操作用户 id
|
int |
getType()
获取讨论组类型。
|
boolean |
isHasReceived()
获取消息已收到的状态。
|
void |
setExtension(java.lang.String extension)
设置需要被加入讨论组用户 id ,多个用户 id 以逗号分割。
|
void |
setHasReceived(boolean hasReceived)
设置消息已收到的状态。
|
void |
setOperator(java.lang.String operator)
设置当前操作用户 id
|
void |
setType(int type)
设置讨论组类型。
|
void |
writeToParcel(android.os.Parcel dest,
int flags)
将类的数据写入外部提供的 Parcel 中。
|
getDestructTime, getJSONDestructInfo, getJsonMentionInfo, getJSONUserInfo, getMentionedInfo, getSearchableWord, getUserInfo, isDestruct, parseJsonToDestructInfo, parseJsonToMentionInfo, parseJsonToUserInfo, setDestruct, setDestructTime, setMentionedInfo, setUserInfo
public static final android.os.Parcelable.Creator<DiscussionNotificationMessage> CREATOR
public DiscussionNotificationMessage()
public DiscussionNotificationMessage(android.os.Parcel in)
public DiscussionNotificationMessage(byte[] data)
public int describeContents()
public void writeToParcel(android.os.Parcel dest, int flags)
dest
- 对象被写入的 Parcel。flags
- 对象如何被写入的附加标志,可能是 0 或 PARCELABLE_WRITE_RETURN_VALUE。public boolean isHasReceived()
public void setHasReceived(boolean hasReceived)
hasReceived
- 消息已收到的状态public byte[] encode()
encode
在类中 MessageContent
public int getType()
public void setType(int type)
type
- 1:加入讨论组 2:退出讨论组 3:讨论组改名 4:讨论组群主 T 人。public java.lang.String getExtension()
public void setExtension(java.lang.String extension)
extension
- 用户 idpublic java.lang.String getOperator()
public void setOperator(java.lang.String operator)
operator
- 用户 id