Easemob Windows SDK
Public Member Functions | List of all members
easemob::EMChatroomManagerInterface Class Referenceabstract
Collaboration diagram for easemob::EMChatroomManagerInterface:
Collaboration graph

Public Member Functions

virtual void addListener (EMChatroomManagerListener *)=0
 Add a listener to chatroom manager. More...
 
virtual void removeListener (EMChatroomManagerListener *)=0
 Remove a listener. More...
 
virtual void clearListeners ()=0
 Remove all the listeners. More...
 
virtual EMChatroomPtr chatroomWithId (const std::string &chatroomId)=0
 Get a chatroom with chatroomId, create the chatroom if not exist. More...
 
virtual EMChatroomList fetchAllChatrooms (EMError &error)=0
 Fetch app's chatrooms. More...
 
virtual EMChatroomPtr fetchChatroomSpecification (const std::string &chatroomId, EMError &error, bool fetchMembers=false)=0
 Get chatroom's specification. More...
 
virtual EMChatroomPtr joinChatroom (const std::string &chatroomId, EMError &error)=0
 Join a chatroom. More...
 
virtual EMChatroomPtr leaveChatroom (const std::string &chatroomId, EMError &error)=0
 Leave a chatroom. More...
 
virtual EMCursorResult fetchChatroomsWithCursor (const std::string &cursor, int pageSize, EMError &error)=0
 fetch chatroom with cursor Note: User can input empty string as cursor at the first time. More...
 
virtual EMChatroomPtr joinedChatroomById (const std::string &chatroomId)=0
 Get the chatroom by chatroom id. More...
 

Member Function Documentation

§ addListener()

virtual void easemob::EMChatroomManagerInterface::addListener ( EMChatroomManagerListener )
pure virtual

Add a listener to chatroom manager.

Parameters
Achatroom manager listener.
Returns
NA

§ chatroomWithId()

virtual EMChatroomPtr easemob::EMChatroomManagerInterface::chatroomWithId ( const std::string &  chatroomId)
pure virtual

Get a chatroom with chatroomId, create the chatroom if not exist.

Parameters
Chatroom'sid.
Returns
A chatroom with the chatroomId.

§ clearListeners()

virtual void easemob::EMChatroomManagerInterface::clearListeners ( )
pure virtual

Remove all the listeners.

Parameters
NA
Returns
NA

§ fetchAllChatrooms()

virtual EMChatroomList easemob::EMChatroomManagerInterface::fetchAllChatrooms ( EMError error)
pure virtual

Fetch app's chatrooms.

Parameters
EMErrorused for output.
Returns
Chatroom list.

§ fetchChatroomSpecification()

virtual EMChatroomPtr easemob::EMChatroomManagerInterface::fetchChatroomSpecification ( const std::string &  chatroomId,
EMError error,
bool  fetchMembers = false 
)
pure virtual

Get chatroom's specification.

Parameters
Chatroom'sID.
EMErrorused for output.
Wetherfetch chatroom's members.
Returns
The chatroom that update it's specification.

§ fetchChatroomsWithCursor()

virtual EMCursorResult easemob::EMChatroomManagerInterface::fetchChatroomsWithCursor ( const std::string &  cursor,
int  pageSize,
EMError error 
)
pure virtual

fetch chatroom with cursor Note: User can input empty string as cursor at the first time.

Parameters
Page'scursor.
Page'ssize.
EMErrorused for output.
Returns
Wrapper of next page's cursor and current page result.

§ joinChatroom()

virtual EMChatroomPtr easemob::EMChatroomManagerInterface::joinChatroom ( const std::string &  chatroomId,
EMError error 
)
pure virtual

Join a chatroom.

Parameters
Chatroom'sID.
EMErrorused for output.
Returns
The joined chatroom.

§ joinedChatroomById()

virtual EMChatroomPtr easemob::EMChatroomManagerInterface::joinedChatroomById ( const std::string &  chatroomId)
pure virtual

Get the chatroom by chatroom id.

Parameters
chatroomIdchat room ID
Returns
the chat room

§ leaveChatroom()

virtual EMChatroomPtr easemob::EMChatroomManagerInterface::leaveChatroom ( const std::string &  chatroomId,
EMError error 
)
pure virtual

Leave a chatroom.

Parameters
Chatroom'sID.
EMErrorused for output.
Returns
The leaved chatroom.

§ removeListener()

virtual void easemob::EMChatroomManagerInterface::removeListener ( EMChatroomManagerListener )
pure virtual

Remove a listener.

Parameters
Achatroom manager listener.
Returns
NA

The documentation for this class was generated from the following file: