Package io.rong.imlib.model
Class ConversationIdentifier
-
- All Implemented Interfaces:
public class ConversationIdentifierConversation ID
-
-
Constructor Summary
Constructors Constructor Description ConversationIdentifier()ConversationIdentifier(ConversationType type, String targetId)
-
Method Summary
Modifier and Type Method Description ConversationTypegetType()voidsetType(ConversationType type)StringgetTargetId()voidsetTargetId(String targetId)StringgetChannelId()voidsetChannelId(String channelId)static ConversationIdentifierobtain(ConversationType type, String targetId, String channelId)static ConversationIdentifierobtainUltraGroup(String targetId, String channelId)static ConversationIdentifierobtainGroup(String targetId)Constructs a GROUP-type ConversationIdentifier. static ConversationIdentifierobtainPrivate(String targetId)Constructs a PRIVATE type ConversationIdentifier. static ConversationIdentifierobtainChatroom(String targetId)Constructs a CHATROOM type ConversationIdentifier. static ConversationIdentifierobtainCustomer(String targetId)Constructs a CUSTOMER_SERVICE type ConversationIdentifier. static ConversationIdentifierobtain(Message message)static ConversationIdentifierobtain(Conversation conversation)intgetTypeValue()StringoptChannelId()booleanisValid()booleanisValidChannel()intdescribeContents()voidwriteToParcel(Parcel dest, int flags)booleanequalsWithMessage(Message message)StringtoString()-
-
Method Detail
-
getType
ConversationType getType()
-
setType
void setType(ConversationType type)
-
getTargetId
String getTargetId()
-
setTargetId
void setTargetId(String targetId)
-
getChannelId
String getChannelId()
-
setChannelId
void setChannelId(String channelId)
-
obtain
static ConversationIdentifier obtain(ConversationType type, String targetId, String channelId)
-
obtainUltraGroup
static ConversationIdentifier obtainUltraGroup(String targetId, String channelId)
-
obtainGroup
static ConversationIdentifier obtainGroup(String targetId)
Constructs a GROUP-type ConversationIdentifier. This type generally does not require a channelId.
-
obtainPrivate
static ConversationIdentifier obtainPrivate(String targetId)
Constructs a PRIVATE type ConversationIdentifier. This type generally does not require passing a channelId.
-
obtainChatroom
static ConversationIdentifier obtainChatroom(String targetId)
Constructs a CHATROOM type ConversationIdentifier. This type generally does not require passing a channelId.
-
obtainCustomer
static ConversationIdentifier obtainCustomer(String targetId)
Constructs a CUSTOMER_SERVICE type ConversationIdentifier. This type generally does not require passing a channelId.
-
obtain
static ConversationIdentifier obtain(Message message)
-
obtain
static ConversationIdentifier obtain(Conversation conversation)
-
getTypeValue
int getTypeValue()
-
optChannelId
String optChannelId()
-
isValid
boolean isValid()
-
isValidChannel
boolean isValidChannel()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
equalsWithMessage
boolean equalsWithMessage(Message message)
-
toString
String toString()
-
-
-
-