public abstract class YWConversationCreater
extends java.lang.Object
Constructor and Description |
---|
YWConversationCreater() |
Modifier and Type | Method and Description |
---|---|
abstract YWConversation |
createConversation(EServiceContact setting)
创建客服会话
|
abstract YWConversation |
createConversationIfNotExist(IYWContact targetContact)
如果当前没有与某个聊天对象的会话记录,则创建一个,如果有将当前的聊天会话记录返回
若targetContact中的appKey错误,则该方法返回null,因此用户使用此方法时,一定要判断返回值是否为空,以免出现空指针引用
该方法必须在UI主线程调用
|
abstract YWConversation |
createConversationIfNotExist(java.lang.String targetUserId)
如果当前没有与某个聊天对象的会话记录,则创建一个,如果有将当前的聊天会话记录返回
该方法必须在UI主线程调用
|
abstract YWConversation |
createCustomConversation(java.lang.String id,
YWConversationType type)
创建自定义会话
|
abstract YWConversation |
createTribeConversation(long tribeId)
创建群会话
|
public abstract YWConversation createConversationIfNotExist(java.lang.String targetUserId)
targetUserId
- 聊天对象idpublic abstract YWConversation createConversationIfNotExist(IYWContact targetContact)
targetContact
- 聊天对象public abstract YWConversation createTribeConversation(long tribeId)
tribeId
- 群IDpublic abstract YWConversation createConversation(EServiceContact setting)
setting
- 客服设置。groupId设置。优先引流到该分组。public abstract YWConversation createCustomConversation(java.lang.String id, YWConversationType type)
id
- 会话idtype
- 会话类型