interface OpenIMClient { GetRoleByUserId(rid,
uid): IMResponse; createRoom(rid): IMResponse; deleteRole(uid,
rid): string; deleteRoom(rid): string; deleteRoomHistory(uuid,
rid): string; getRole(rid): IMResponse; getRoomCount(rid): IMResponse; getRoomHistory(rid): IMResponse; getRoomMember(rid,
offset,
limit): IMResponse; pushRoom(rid,
flag,
msg): IMResponse; pushUser(uid,
msg): IMResponse; restrictRoom(rid,
uid,
restrict): IMResponse; setRole(uid,
rid,
role): IMResponse; } Methods
deleteRole
- deleteRole(uid, rid): string
Returns string
uid
deleteRoom
- deleteRoom(rid): string
Returns string
deleteRoomHistory
- deleteRoomHistory(uuid, rid): string
Returns string
getRoomMember
- getRoomMember(rid, offset, limit): IMResponse
Parameters
- rid: string
- offset: number
- limit: number
房间人员信息
pushRoom
- pushRoom(rid, flag, msg): IMResponse
Parameters
- rid: string
- flag: string
- msg: string
restrictRoom
- restrictRoom(rid, uid, restrict): IMResponse
Parameters
- rid: string
- uid: string
- restrict: boolean
setRole
- setRole(uid, rid, role): IMResponse
Parameters
- uid: string
- rid: string
- role: string
IM client interface