|
|
|
@ -12,96 +12,95 @@ class GroupManagerService : public FLTService |
|
|
|
|
public: |
|
|
|
|
GroupManagerService(); |
|
|
|
|
|
|
|
|
|
void onMethodCalled( |
|
|
|
|
const std::string &method, |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
virtual void onMethodCalled( |
|
|
|
|
const std::string& method, const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result) |
|
|
|
|
override; |
|
|
|
|
|
|
|
|
|
// Method handlers
|
|
|
|
|
void setGroupListener( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void inviteUserToGroup( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void kickGroupMember( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void getGroupMembersInfo( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void getGroupMemberList( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void getJoinedGroupList( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void getJoinedGroupListPage( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void createGroup( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void setGroupInfo( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void getGroupsInfo( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void joinGroup( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void quitGroup( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void transferGroupOwner( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void getGroupApplicationListAsRecipient( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void getGroupApplicationListAsApplicant( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void acceptGroupApplication( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void refuseGroupApplication( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void dismissGroup( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void changeGroupMute( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void changeGroupMemberMute( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void searchGroups( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void getGroupMemberListByJoinTimeFilter( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void getGroupMemberOwnerAndAdmin( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void searchGroupMembers( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void setGroupMemberInfo( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void isJoinGroup( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
void getUsersInGroup( |
|
|
|
|
const flutter::EncodableMap *arguments, |
|
|
|
|
const flutter::EncodableMap* arguments, |
|
|
|
|
std::shared_ptr<flutter::MethodResult<flutter::EncodableValue>> result); |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
std::string m_serviceName; |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
#endif // GROUP_MANAGER_SERVICE_H
|