|
ShengwangChatSDK 1.3.2
|
|
required |
Add delegate
| aDelegate | Delegate is kindof protocol AgoraChatThreadManagerDelegate |
| aQueue | (optional) The queue of calling delegate methods. Pass in nil to run on main thread. |
|
required |
Create a subsection
| threadName | The id of the subarea to get(limit 64 character) |
| messageId | The message id of the operation to create the sub-area |
| parentId | The session id where the message of the operation creates the sub-area is also the to of that message |
| completion | Returns the callback, containing an AgoraChatThread object and an AgoraChatError error object |
|
required |
destroy a subsection
| threadId | The id of the subzone to destroy |
| aCompletionBlock | return callback, success or failure |
|
required |
Get the thread detail
| threadId | The id of the subarea to get |
| aCompletionBlock | Returns the callback, containing an AgoraChatThread object and an AgoraChatError error object |
|
required |
Get a list of members in a subsection
| threadId | The id of the subarea to get members |
| aCursor | cursor The position cursor of the last fetch |
| pageSize | Number of single requests limit 50 |
| aCompletionBlock | Returns the callback, containing an AgoraChatCursorResult object and an AgoraChatError error object |
|
required |
Get the subareas under a group from the server
| parentId | The session id of the upper level of the sub-area |
| aCursor | The position cursor of the last fetch |
| pageSize | Number of single requests limit 50 |
| aCompletionBlock | Returns the callback, containing an AgoraChatCursorResult object and an AgoraChatError error object |
|
required |
Get the subzones the user has joined from the server
| aCursor | cursor The position cursor of the last fetch |
| pageSize | Number of single requests limit 50 |
| aCompletionBlock | Returns the callback, containing an AgoraChatCursorResult object and an AgoraChatError error object |
|
required |
Get the mine subareas under a group from the server
| parentId | The session id of the upper level of the sub-area |
| aCursor | The position cursor of the last fetch |
| pageSize | Number of single requests limit 50 |
| aCompletionBlock | Returns the callback, containing an AgoraChatCursorResult object and an AgoraChatError error object |
|
required |
Get the thread detail
| threadIds | The ids of the subarea to get(No more than 20 ids for a single request) |
| aCompletionBlock | Return the callback, including a dictionary key is the sub-area id, value is the AgoraChatMessage object |
|
required |
join a subsection
| threadId | The id of the subzone to join |
| aCompletionBlock | return callback, success or failure |
|
required |
leave a subsection
| threadId | The id of the subzone to leave |
| aCompletionBlock | return callback, success or failure |
|
required |
Remove delegate
| aDelegate | Delegate is kindof protocol AgoraChatThreadManagerDelegate |
|
required |
Remove sub-zone members (only available for group management)
| aUser | To remove the user's ease id |
| athreadId | subarea id to operate |
| aCompletionBlock | return callback, success or failure |
|
required |
Update subzone name (only available for group managers or creators)
| name | the name you want to change(limit 64 character) |
| threadId | subarea id to operate |
| aCompletionBlock | return callback, success or failure |