# ConversationIdentifier

public class ConversationIdentifier

会话标识

## Constructors

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

## Properties

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

## Functions

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