public class UIConversation
extends java.lang.Object
implements android.os.Parcelable
限定符和类型 | 类和说明 |
---|---|
static class |
UIConversation.UnreadRemindType |
限定符和类型 | 字段和说明 |
---|---|
static android.os.Parcelable.Creator<UIConversation> |
CREATOR |
限定符和类型 | 方法和说明 |
---|---|
void |
addNickname(java.lang.String userId) |
void |
clearLastMessage() |
void |
clearUnRead(Conversation.ConversationType conversationType,
java.lang.String targetId) |
int |
describeContents() |
android.text.Spannable |
getConversationContent() |
boolean |
getConversationGatherState() |
java.lang.String |
getConversationSenderId() |
java.lang.String |
getConversationTargetId() |
Conversation.ConversationType |
getConversationType() |
java.lang.String |
getDraft() |
java.lang.String |
getExtra() |
boolean |
getExtraFlag() |
android.net.Uri |
getIconUrl() |
int |
getLatestMessageId() |
boolean |
getMentionedFlag() |
MessageContent |
getMessageContent() |
Conversation.ConversationNotificationStatus |
getNotificationStatus() |
Message.SentStatus |
getSentStatus() |
long |
getSyncReadReceiptTime() |
long |
getUIConversationTime() |
java.lang.String |
getUIConversationTitle() |
int |
getUnReadMessageCount() |
UIConversation.UnreadRemindType |
getUnReadType() |
boolean |
hasNickname(java.lang.String userId) |
boolean |
isTop() |
static UIConversation |
obtain(android.content.Context context,
Conversation conversation,
boolean isGathered) |
static UIConversation |
obtain(android.content.Context context,
Message message,
boolean isGathered) |
void |
removeNickName(java.lang.String userId) |
void |
setConversationContent(android.text.Spannable content) |
void |
setConversationGatherState(boolean state) |
void |
setConversationSenderId(java.lang.String id) |
void |
setConversationTargetId(java.lang.String id) |
void |
setConversationType(Conversation.ConversationType type) |
void |
setDraft(java.lang.String content) |
void |
setExtra(java.lang.String extra) |
void |
setExtraFlag(boolean extraFlag) |
void |
setIconUrl(android.net.Uri iconUrl) |
void |
setLatestMessageId(int id) |
void |
setMentionedFlag(boolean flag) |
void |
setMessageContent(MessageContent content) |
void |
setNotificationStatus(Conversation.ConversationNotificationStatus status) |
void |
setSentStatus(Message.SentStatus status) |
void |
setSyncReadReceiptTime(long syncReadReceiptTime) |
void |
setTop(boolean value) |
void |
setUIConversationTime(long time) |
void |
setUIConversationTitle(java.lang.String title) |
void |
setUnReadMessageCount(int count) |
void |
setUnreadType(UIConversation.UnreadRemindType type) |
void |
updateConversation(android.content.Context context,
Conversation conversation,
boolean isGathered) |
void |
updateConversation(android.content.Context context,
Discussion discussion) |
void |
updateConversation(android.content.Context context,
Group group) |
void |
updateConversation(android.content.Context context,
Message message,
boolean isGathered) |
void |
updateConversation(android.content.Context context,
UserInfo userInfo)
根据用户信息,分别更新
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<UIConversation> CREATOR
public void setSyncReadReceiptTime(long syncReadReceiptTime)
public long getSyncReadReceiptTime()
public static UIConversation obtain(android.content.Context context, Message message, boolean isGathered)
public void updateConversation(android.content.Context context, Message message, boolean isGathered)
public static UIConversation obtain(android.content.Context context, Conversation conversation, boolean isGathered)
public void updateConversation(android.content.Context context, Conversation conversation, boolean isGathered)
public void clearLastMessage()
public void clearUnRead(Conversation.ConversationType conversationType, java.lang.String targetId)
public void updateConversation(android.content.Context context, UserInfo userInfo)
userInfo
- 用户信息public void updateConversation(android.content.Context context, Group group)
public void updateConversation(android.content.Context context, Discussion discussion)
public boolean getExtraFlag()
public void setExtraFlag(boolean extraFlag)
public java.lang.String getExtra()
public void setExtra(java.lang.String extra)
public void setUIConversationTitle(java.lang.String title)
public java.lang.String getUIConversationTitle()
public void setIconUrl(android.net.Uri iconUrl)
public android.net.Uri getIconUrl()
public void setConversationContent(android.text.Spannable content)
public android.text.Spannable getConversationContent()
public void setMessageContent(MessageContent content)
public MessageContent getMessageContent()
public void setUIConversationTime(long time)
public long getUIConversationTime()
public void setUnReadMessageCount(int count)
public int getUnReadMessageCount()
public void setTop(boolean value)
public boolean isTop()
public void setConversationType(Conversation.ConversationType type)
public Conversation.ConversationType getConversationType()
public void setSentStatus(Message.SentStatus status)
public Message.SentStatus getSentStatus()
public void setConversationTargetId(java.lang.String id)
public java.lang.String getConversationTargetId()
public void setConversationSenderId(java.lang.String id)
public java.lang.String getConversationSenderId()
public void setConversationGatherState(boolean state)
public boolean getConversationGatherState()
public void setNotificationStatus(Conversation.ConversationNotificationStatus status)
public Conversation.ConversationNotificationStatus getNotificationStatus()
public void setDraft(java.lang.String content)
public java.lang.String getDraft()
public void setLatestMessageId(int id)
public int getLatestMessageId()
public void addNickname(java.lang.String userId)
public void removeNickName(java.lang.String userId)
public boolean hasNickname(java.lang.String userId)
public void setMentionedFlag(boolean flag)
public boolean getMentionedFlag()
public void setUnreadType(UIConversation.UnreadRemindType type)
public UIConversation.UnreadRemindType getUnReadType()
public int describeContents()
describeContents
在接口中 android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
在接口中 android.os.Parcelable