Package io.rong.imlib.model
Class ConversationIdentifier
-
- All Implemented Interfaces:
public class ConversationIdentifier会话标识
-
-
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)构建GROUP类型ConversationIdentifier,该类型一般不需传channelId static ConversationIdentifierobtainPrivate(String targetId)构建PRIVATE类型ConversationIdentifier,该类型一般不需传channelId static ConversationIdentifierobtainChatroom(String targetId)构建 CHATROOM 类型ConversationIdentifier,该类型一般不需传channelId static ConversationIdentifierobtainCustomer(String targetId)构建 CUSTOMER_SERVICE 类型ConversationIdentifier,该类型一般不需传channelId static ConversationIdentifierobtain(Message message)static ConversationIdentifierobtain(Conversation conversation)intgetTypeValue()StringoptChannelId()booleanisValid()booleanisValidChannel()booleanisChannelIdValid()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)
构建GROUP类型ConversationIdentifier,该类型一般不需传channelId
-
obtainPrivate
static ConversationIdentifier obtainPrivate(String targetId)
构建PRIVATE类型ConversationIdentifier,该类型一般不需传channelId
-
obtainChatroom
static ConversationIdentifier obtainChatroom(String targetId)
构建 CHATROOM 类型ConversationIdentifier,该类型一般不需传channelId
-
obtainCustomer
static ConversationIdentifier obtainCustomer(String targetId)
构建 CUSTOMER_SERVICE 类型ConversationIdentifier,该类型一般不需传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()
-
isChannelIdValid
boolean isChannelIdValid()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
equalsWithMessage
boolean equalsWithMessage(Message message)
-
toString
String toString()
-
-
-
-