public interface ZxApi
限定符和类型 | 方法和说明 |
---|---|
Map<String,Object> |
getGroupAuth(String groupId,
String memberId,
String groupAuthType)
判断当前人在当前群组是否有文件操作权限
|
String[] |
getGroupMemberIdArray(String groupId)
获取群主成员id数组
|
Map<String,String> |
getLoginC2sUC(String memberId)
获取致信中人员登陆信息(客户端连接)
正常:
1、传入人员ID获取用户上线信息包括jid、token、port、extranetIp、 intranetIp、 异常: 2、不能取到jid、token、port、extranetIp、 intranetIp |
Map<String,String> |
getPcUrl(com.seeyon.ctp.common.po.usermessage.Ent_UserMessage message)
获取致信消息对象
|
Map<String,String> |
getPcUrl(com.seeyon.ctp.common.po.usermessage.UserHistoryMessage message)
获取致信消息对象
|
int |
getRongState(String memberId)
返回融云用户状态
|
String |
getUcRongCacheValue(String key)
获取初始化融云数据中存储的值
|
boolean |
isOpenBusinessPush()
判断是否开启业务消息推送
|
boolean |
isRong()
判断当前通道是否是融云通道
融云通道:true
local:false
|
Integer |
publishMobilePrivateDonotPush(String sendId,
String[] toIds,
String content,
String extra,
String pushContent,
String pushData,
String count,
Integer verifyBlacklist,
Integer isPersisted,
Integer isCounted,
Integer isIncludeSender)
发送移动消息消息
|
Map<String,String> |
synchronousUserLogin(String memberId,
String connectType)
登录用户,并返回用户登录信息
|
Integer publishMobilePrivateDonotPush(String sendId, String[] toIds, String content, String extra, String pushContent, String pushData, String count, Integer verifyBlacklist, Integer isPersisted, Integer isCounted, Integer isIncludeSender)
fromUserId:发送人用户
- Id。(必传)toUserId:接收用户
- Id,可以实现向多人发送消息,每次上限为 1000 人。(必传)content:
- mobileOAMessage内的消息内容extra:
- mobileOAMessage内的扩展内容pushContent:定义显示的
- Push 内容,如果 objectName 为融云内置消息类型时,则发送后用户一定会收到 Push 信息。如果为自定义消息,则 pushContent 为自定义消息显示的 Push 内容,如果不传则用户不会收到 Push 通知。(可选)pushData:针对
- iOS 平台为 Push 通知时附加到 payload 中,Android 客户端收到推送消息时对应字段名为 pushData。(可选)count:针对
- iOS 平台,Push 时用来控制未读消息显示数,只有在 toUserId 为一个用户 Id 的时候有效。(可选)verifyBlacklist:是否过滤发送人黑名单列表,0
- 表示为不过滤、 1 表示为过滤,默认为 0 不过滤。(可选)isPersisted:当前版本有新的自定义消息,而老版本没有该自定义消息时,老版本客户端收到消息后是否进行存储,0
- 表示为不存储、 1 表示为存储,默认为 1 存储消息。(可选)isCounted:当前版本有新的自定义消息,而老版本没有该自定义消息时,老版本客户端收到消息后是否进行未读消息计数,0
- 表示为不计数、 1 表示为计数,默认为 1 计数,未读消息数增加 1。(可选)isIncludeSender:发送用户自已是否接收消息,0
- 表示为不接收,1 表示为接收,默认为 0 不接收。(可选)String getUcRongCacheValue(String key)
key
- "uc_Channel":通道,"uc_deployment":部署方式,公有云/私有云.... 具体参考UcConstants类中以UC_为前缀的常量String[] getGroupMemberIdArray(String groupId)
groupId
- 群组编号
正常:int getRongState(String memberId)
memberId
- 人员id LongMap<String,String> synchronousUserLogin(String memberId, String connectType)
memberId
- 用户编号connectType
- 连接类型Map<String,Object> getGroupAuth(String groupId, String memberId, String groupAuthType)
groupId
- 群组idmemberId
- 人员idgroupAuthType
- 操作类型 sendfile,receivefile(不区分大小写)Map<String,String> getPcUrl(com.seeyon.ctp.common.po.usermessage.UserHistoryMessage message)
message
- A8 消息对象mi:消息编号 si:发送人编号 sn:发送人姓名 ui:接收人编号 un:接收人名称 c :内容 ml:pc穿透连接 mml:移动穿透连接 mc:消息分类(协同、公文 mt:消息类型(系统消息、普通消息) t :创建时间 ir:已读/未读
Map<String,String> getPcUrl(com.seeyon.ctp.common.po.usermessage.Ent_UserMessage message)
message
- A8 消息对象mi:消息编号 si:发送人编号 sn:发送人姓名 ui:接收人编号 un:接收人名称 c :内容 ml:pc穿透连接 mml:移动穿透连接 mc:消息分类(协同、公文 mt:消息类型(系统消息、普通消息) t :创建时间 ir:已读/未读
Map<String,String> getLoginC2sUC(String memberId) throws Exception
memberId
- Exception
boolean isRong()
boolean isOpenBusinessPush()
Copyright © 2016–2018. All rights reserved.