Easemob Windows SDK
|
Public Member Functions | |
virtual void | addListener (EMGroupManagerListener *)=0 |
Add a listener to group manager. More... | |
virtual void | removeListener (EMGroupManagerListener *)=0 |
Remove a listener. More... | |
virtual void | clearListeners ()=0 |
Remove all the listeners. More... | |
virtual EMGroupPtr | groupWithId (const std::string &groupId)=0 |
Get a group with groupId, create the group if not exist. More... | |
virtual EMGroupList | allMyGroups (EMError &error)=0 |
Get groups for login user from memory. More... | |
virtual EMGroupList | loadAllMyGroupsFromDB ()=0 |
Get groups for login user from db. More... | |
virtual EMGroupList | fetchAllMyGroups (EMError &error)=0 |
Fetch all groups for login user from server. More... | |
virtual EMCursorResult | fetchPublicGroupsWithCursor (const std::string &cursor, int pageSize, EMError &error)=0 |
Fetch app's public groups. More... | |
virtual EMGroupPtr | createGroup (const std::string &subject, const std::string &description, const std::string &welcomeMessage, const EMGroupSetting &setting, const EMGroupMemberList &members, EMError &error)=0 |
Create a new group. More... | |
virtual EMGroupPtr | joinPublicGroup (const std::string &groupId, EMError &error)=0 |
Join a public group. More... | |
virtual EMGroupPtr | applyJoinPublicGroup (const std::string &groupId, const std::string &nickName, const std::string &message, EMError &error)=0 |
Apply to join a public group, need owner's approval. More... | |
virtual EMGroupPtr | leaveGroup (const std::string &groupId, EMError &error)=0 |
Leave a group. More... | |
virtual EMGroupPtr | destroyGroup (const std::string &groupId, EMError &error)=0 |
Destroy a group. More... | |
virtual EMGroupPtr | addGroupMembers (const std::string &groupId, const EMGroupMemberList &members, const std::string &welcomeMessage, EMError &error)=0 |
Add members to a group. More... | |
virtual EMGroupPtr | removeGroupMembers (const std::string &groupId, const EMGroupMemberList &members, EMError &error)=0 |
Remove members from a group. More... | |
virtual EMGroupPtr | blockGroupMembers (const std::string &groupId, const EMGroupMemberList &members, EMError &error, const std::string &reason="")=0 |
Block group's members, the blocked user can't send message in the group. More... | |
virtual EMGroupPtr | unblockGroupMembers (const std::string &groupId, const EMGroupMemberList &members, EMError &error)=0 |
Unblock group's members. More... | |
virtual EMGroupPtr | changeGroupSubject (const std::string &groupId, const std::string &newSubject, EMError &error)=0 |
Change group's subject. More... | |
virtual EMGroupPtr | changeGroupDescription (const std::string &groupId, const std::string &newDescription, EMError &error)=0 |
Change group's description. More... | |
virtual EMGroupPtr | fetchGroupSpecification (const std::string &groupId, EMError &error, bool fetchMembers=true)=0 |
Get group's specification. More... | |
virtual const EMGroupMemberList * | fetchGroupBans (const std::string &groupId, EMError &error)=0 |
Get group's black list. More... | |
virtual EMGroupPtr | searchPublicGroup (const std::string &groupId, EMError &error)=0 |
Search for a public group. More... | |
virtual EMGroupPtr | blockGroupMessage (const std::string &groupId, EMError &error)=0 |
Block group message. More... | |
virtual EMGroupPtr | unblockGroupMessage (const std::string &groupId, EMError &error)=0 |
Unblock group message. More... | |
virtual EMGroupPtr | acceptJoinGroupApplication (const std::string &groupId, const std::string &user, EMError &error)=0 |
Accept user's join application. More... | |
virtual EMGroupPtr | declineJoinGroupApplication (const std::string &groupId, const std::string &user, const std::string &reason, EMError &error)=0 |
Reject user's join application. More... | |
virtual EMGroupPtr | acceptInvitationFromGroup (const std::string &groupId, const std::string &inviter, EMError &error)=0 |
accept group's invitation. More... | |
virtual void | declineInvitationFromGroup (const std::string &groupId, const std::string &inviter, const std::string &reason, EMError &error)=0 |
decline group's invitation. More... | |
|
pure virtual |
accept group's invitation.
Group's | ID. |
Inviter. | |
EMError | used for output. |
|
pure virtual |
Accept user's join application.
Note: Only group's owner can approval someone's application.
Group's | ID. |
The | user that send the application. |
EMError | used for output. |
|
pure virtual |
Add members to a group.
Note: Maybe user don't have the priviledge, it depends on group's setting.
Group's | ID. |
Invited | users. |
Welcome | message that will be sent to invited user. |
EMError | used for output. |
|
pure virtual |
Add a listener to group manager.
A | group manager listener. |
|
pure virtual |
Get groups for login user from memory.
EMError | used for output. |
|
pure virtual |
Apply to join a public group, need owner's approval.
Note: The group's style must be PUBLIC_JOIN_APPROVAL, or will return error.
Group's | ID. |
Nick | name in the group. |
Apply | message, that will be sent to group owner. |
EMError | used for output. |
|
pure virtual |
Block group's members, the blocked user can't send message in the group.
Note: Only group's owner can block other members.
Group's | ID. |
Blocked | users. |
EMError | used for output. |
The | reason that why block the members. |
|
pure virtual |
Block group message.
Note: Owner can't block the group message.
Group's | ID. |
EMError | used for output. |
|
pure virtual |
Change group's description.
Note: Only group's owner can change group's description.
Group's | ID. |
The | new group description. |
EMError | used for output. |
|
pure virtual |
Change group's subject.
Note: Only group's owner can change group's subject.
Group's | ID. |
The | new group subject. |
EMError | used for output. |
|
pure virtual |
Remove all the listeners.
NA |
|
pure virtual |
Create a new group.
Note: Login user will be the owner of created .
Group's | subject. |
Group's | description. |
Welcome | message that will be sent to invited user. |
Group's | setting. |
Group's | members. |
EMError | used for output. |
|
pure virtual |
decline group's invitation.
Group's | ID. |
Inviter. | |
The | decline reason. |
EMError | used for output. |
|
pure virtual |
Reject user's join application.
Note: Only group's owner can reject someone's application.
Group's | ID. |
The | user that send the application. |
The | reject reason. |
EMError | used for output. |
|
pure virtual |
Destroy a group.
Note: Only group's owner can destroy the group.
Group's | ID. |
EMError | used for output. |
|
pure virtual |
Fetch all groups for login user from server.
Note: Groups in memory will be updated.
EMError | used for output. |
|
pure virtual |
Get group's black list.
Group's | ID. |
EMError | used for output. |
|
pure virtual |
Get group's specification.
Group's | ID. |
EMError | used for output. |
Whether | get group's members. |
|
pure virtual |
Fetch app's public groups.
Note: User can input empty string as cursor at the first time.
Page's | cursor. |
Page's | size. |
EMError | used for output. |
|
pure virtual |
Get a group with groupId, create the group if not exist.
Group's | id. |
|
pure virtual |
Join a public group.
Note: The group's style must be PUBLIC_JOIN_OPEN, or will return error.
Group's | ID. |
EMError | used for output. |
|
pure virtual |
Leave a group.
Note: Group's owner can't leave the group.
Group's | ID. |
EMError | used for output. |
|
pure virtual |
Get groups for login user from db.
|
pure virtual |
Remove members from a group.
Note: Only group's owner can remove members.
Group's | ID. |
Removed | users. |
EMError | used for output. |
|
pure virtual |
Remove a listener.
A | group manager listener. |
|
pure virtual |
|
pure virtual |
Unblock group's members.
Note: Only group's owner can unblock other members.
Group's | ID. |
Unblocked | users. |
EMError | used for output. |
|
pure virtual |
Unblock group message.
Group's | ID. |
EMError | used for output. |