ConversationIdentifier

会话标识

Constructors

Link copied to clipboard
public void ConversationIdentifier()
public void ConversationIdentifier(ConversationType type, String targetId)

Properties

Link copied to clipboard
public String channelId
消息所属会话的业务标识 ID。
Link copied to clipboard
public final static Creator<ConversationIdentifier> CREATOR
Link copied to clipboard
public String targetId
会话 id。
Link copied to clipboard
public ConversationType type

Functions

Link copied to clipboard
public int describeContents()
Link copied to clipboard
public boolean equalsWithMessage(Message message)
Link copied to clipboard
public String getChannelId()
Link copied to clipboard
public String getTargetId()
Link copied to clipboard
public ConversationType getType()
Link copied to clipboard
public int getTypeValue()
Link copied to clipboard
public boolean isValid()
Link copied to clipboard
public boolean isValidChannel()
Link copied to clipboard
public static ConversationIdentifier obtain(Conversation conversation)
public static ConversationIdentifier obtain(Message message)
public static ConversationIdentifier obtain(ConversationType type, String targetId, String channelId)
Link copied to clipboard
public static ConversationIdentifier obtainChatroom(String targetId)
构建 CHATROOM 类型ConversationIdentifier,该类型一般不需传channelId
Link copied to clipboard
public static ConversationIdentifier obtainCustomer(String targetId)
构建 CUSTOMER_SERVICE 类型ConversationIdentifier,该类型一般不需传channelId
Link copied to clipboard
public static ConversationIdentifier obtainGroup(String targetId)
构建GROUP类型ConversationIdentifier,该类型一般不需传channelId
Link copied to clipboard
public static ConversationIdentifier obtainPrivate(String targetId)
构建PRIVATE类型ConversationIdentifier,该类型一般不需传channelId
Link copied to clipboard
public static ConversationIdentifier obtainUltraGroup(String targetId, String channelId)
Link copied to clipboard
public String optChannelId()
Link copied to clipboard
public void setChannelId(String channelId)
Link copied to clipboard
public void setTargetId(String targetId)
Link copied to clipboard
public void setType(ConversationType type)
Link copied to clipboard
public String toString()
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)