Method | Description | |
---|---|---|
ClearNotify ( string accessToken, string opUser, Chat_Type type, string chatIdOrUserId, int timeOut = Config.TIME_OUT ) : |
清除消息未读状态
|
|
ClearNotifyAsync ( string accessToken, string opUser, Chat_Type type, string chatIdOrUserId, int timeOut = Config.TIME_OUT ) : Task |
【异步方法】清除消息未读状态
|
|
CreateChat ( string accessToken, string chatId, string name, string owner, string userlist, int timeOut = Config.TIME_OUT ) : |
创建会话
|
|
CreateChatAsync ( string accessToken, string chatId, string name, string owner, string userlist, int timeOut = Config.TIME_OUT ) : Task |
【异步方法】创建会话
|
|
GetChat ( string accessToken, string chatId ) : |
获取会话
|
|
GetChatAsync ( string accessToken, string chatId ) : Task |
【异步方法】获取会话
|
|
QuitChat ( string accessToken, string chatId, string opUser, int timeOut = Config.TIME_OUT ) : |
退出会话
|
|
QuitChatAsync ( string accessToken, string chatId, string opUser, int timeOut = Config.TIME_OUT ) : Task |
【异步方法】退出会话
|
|
SendChatMessage ( string accessToken, string sender, Chat_Type type, ChatMsgType msgType, string chatIdOrUserId, string contentOrMediaId, int timeOut = Config.TIME_OUT ) : |
发消息
|
|
SendChatMessageAsync ( string accessToken, string sender, Chat_Type type, ChatMsgType msgType, string chatIdOrUserId, string contentOrMediaId, int timeOut = Config.TIME_OUT ) : Task |
【异步方法】发消息
|
|
SetMute ( string accessToken, List |
设置成员新消息免打扰
|
|
SetMuteAsync ( string accessToken, List |
【异步方法】设置成员新消息免打扰
|
|
UpdateChat ( string accessToken, string chatId, string opUser, string name = null, string owner = null, string addUserList = null, string delUserList = null, int timeOut = Config.TIME_OUT ) : |
修改会话信息
|
|
UpdateChatAsync ( string accessToken, string chatId, string opUser, string name = null, string owner = null, string addUserList = null, string delUserList = null, int timeOut = Config.TIME_OUT ) : Task |
【异步方法】修改会话信息
|
public static ClearNotify ( string accessToken, string opUser, Chat_Type type, string chatIdOrUserId, int timeOut = Config.TIME_OUT ) : |
||
accessToken | string | |
opUser | string | 会话所有者的userid |
type | Chat_Type | 会话类型:single|group,分别表示:群聊|单聊 |
chatIdOrUserId | string | 会话值,为userid|chatid,分别表示:成员id|会话id,单聊是userid,群聊是chatid |
timeOut | int | |
return |
public static ClearNotifyAsync ( string accessToken, string opUser, Chat_Type type, string chatIdOrUserId, int timeOut = Config.TIME_OUT ) : Task |
||
accessToken | string | |
opUser | string | 会话所有者的userid |
type | Chat_Type | 会话类型:single|group,分别表示:群聊|单聊 |
chatIdOrUserId | string | 会话值,为userid|chatid,分别表示:成员id|会话id,单聊是userid,群聊是chatid |
timeOut | int | |
return | Task |
public static CreateChat ( string accessToken, string chatId, string name, string owner, string userlist, int timeOut = Config.TIME_OUT ) : |
||
accessToken | string | |
chatId | string | 会话id。字符串类型,最长32个字符。只允许字符0-9及字母a-zA-Z, 如果值内容为64bit无符号整型:要求值范围在[1, 2^63)之间,[2^63, 2^64)为系统分配会话id区间 |
name | string | 会话标题 |
owner | string | 管理员userid,必须是该会话userlist的成员之一 |
userlist | string | 会话成员列表,成员用userid来标识。会话成员必须在3人或以上,1000人以下 |
timeOut | int | |
return |
public static CreateChatAsync ( string accessToken, string chatId, string name, string owner, string userlist, int timeOut = Config.TIME_OUT ) : Task |
||
accessToken | string | |
chatId | string | 会话id。字符串类型,最长32个字符。只允许字符0-9及字母a-zA-Z, 如果值内容为64bit无符号整型:要求值范围在[1, 2^63)之间,[2^63, 2^64)为系统分配会话id区间 |
name | string | 会话标题 |
owner | string | 管理员userid,必须是该会话userlist的成员之一 |
userlist | string | 会话成员列表,成员用userid来标识。会话成员必须在3人或以上,1000人以下 |
timeOut | int | |
return | Task |
public static GetChat ( string accessToken, string chatId ) : |
||
accessToken | string | |
chatId | string | |
return |
public static GetChatAsync ( string accessToken, string chatId ) : Task |
||
accessToken | string | |
chatId | string | |
return | Task |
public static QuitChat ( string accessToken, string chatId, string opUser, int timeOut = Config.TIME_OUT ) : |
||
accessToken | string | |
chatId | string | |
opUser | string | |
timeOut | int | |
return |
public static QuitChatAsync ( string accessToken, string chatId, string opUser, int timeOut = Config.TIME_OUT ) : Task |
||
accessToken | string | |
chatId | string | |
opUser | string | |
timeOut | int | |
return | Task |
public static SendChatMessage ( string accessToken, string sender, Chat_Type type, ChatMsgType msgType, string chatIdOrUserId, string contentOrMediaId, int timeOut = Config.TIME_OUT ) : |
||
accessToken | string | |
sender | string | 发送人的userId |
type | Chat_Type | 接收人类型:single|group,分别表示:群聊|单聊 |
msgType | ChatMsgType | 消息类型,text|image|file |
chatIdOrUserId | string | 会话值,为userid|chatid,分别表示:成员id|会话id,单聊是userid,群聊是chatid |
contentOrMediaId | string | 文本消息是content,图片或文件是mediaId |
timeOut | int | |
return |
public static SendChatMessageAsync ( string accessToken, string sender, Chat_Type type, ChatMsgType msgType, string chatIdOrUserId, string contentOrMediaId, int timeOut = Config.TIME_OUT ) : Task |
||
accessToken | string | |
sender | string | 发送人的userId |
type | Chat_Type | 接收人类型:single|group,分别表示:群聊|单聊 |
msgType | ChatMsgType | 消息类型,text|image|file |
chatIdOrUserId | string | 会话值,为userid|chatid,分别表示:成员id|会话id,单聊是userid,群聊是chatid |
contentOrMediaId | string | 文本消息是content,图片或文件是mediaId |
timeOut | int | |
return | Task |
public static SetMute ( string accessToken, List |
||
accessToken | string | |
userMuteList | List |
成员新消息免打扰参数,数组,最大支持10000个成员 |
timeOut | int | |
return |
public static SetMuteAsync ( string accessToken, List |
||
accessToken | string | |
userMuteList | List |
成员新消息免打扰参数,数组,最大支持10000个成员 |
timeOut | int | |
return | Task |
public static UpdateChat ( string accessToken, string chatId, string opUser, string name = null, string owner = null, string addUserList = null, string delUserList = null, int timeOut = Config.TIME_OUT ) : |
||
accessToken | string | |
chatId | string | 会话id |
opUser | string | 操作人userid |
name | string | 会话标题 |
owner | string | 管理员userid,必须是该会话userlist的成员之一 |
addUserList | string | 会话新增成员列表,成员用userid来标识 |
delUserList | string | 会话退出成员列表,成员用userid来标识 |
timeOut | int | |
return |
public static UpdateChatAsync ( string accessToken, string chatId, string opUser, string name = null, string owner = null, string addUserList = null, string delUserList = null, int timeOut = Config.TIME_OUT ) : Task |
||
accessToken | string | |
chatId | string | 会话id |
opUser | string | 操作人userid |
name | string | 会话标题 |
owner | string | 管理员userid,必须是该会话userlist的成员之一 |
addUserList | string | 会话新增成员列表,成员用userid来标识 |
delUserList | string | 会话退出成员列表,成员用userid来标识 |
timeOut | int | |
return | Task |