9#import <Foundation/Foundation.h>
18NS_ASSUME_NONNULL_BEGIN
23@protocol NIMTeamManager <NSObject>
29- (nullable NSArray<
NIMTeam *> *)allMyTeams;
39- (nullable
NIMTeam *)teamById:(NSString *)teamId;
49- (BOOL)isMyTeam:(NSString *)teamId;
60 users:(NSArray<NSString *> *)users
78- (void)dismissTeam:(NSString *)teamId
87- (void)quitTeam:(NSString *)teamId
99- (void)addUsers:(NSArray<NSString *> *)users
100 toTeam:(NSString *)teamId
101 postscript:(nullable NSString *)postscript
102 attach:(nullable NSString *)attach
112- (void)kickUsers:(NSArray<NSString *> *)users
113 fromTeam:(NSString *)teamId
123- (void)updateTeamName:(NSString *)teamName
124 teamId:(NSString *)teamId
135- (void)updateTeamAvatar:(NSString *)teamAvatarUrl
136 teamId:(NSString *)teamId
148 teamId:(NSString *)teamId
160 teamId:(NSString *)teamId
171 teamId:(NSString *)teamId
183 teamId:(NSString *)teamId
195 teamId:(NSString *)teamId
207- (void)updateTeamIntro:(NSString *)intro
208 teamId:(NSString *)teamId
219- (void)updateTeamAnnouncement:(NSString *)announcement
220 teamId:(NSString *)teamId
230- (void)updateTeamCustomInfo:(NSString *)info
231 teamId:(NSString *)teamId
243- (void)updateTeamInfos:(NSDictionary<NSNumber *,NSString *> *)values
244 teamId:(NSString *)teamId
256- (void)applyToTeam:(NSString *)teamId
257 message:(NSString *)message
268- (void)passApplyToTeam:(NSString *)teamId
269 userId:(NSString *)userId
280- (void)rejectApplyToTeam:(NSString *)teamId
281 userId:(NSString *)userId
282 rejectReason:(NSString*)rejectReason
294- (void)updateUserNick:(NSString *)userId
295 newNick:(NSString *)newNick
296 inTeam:(NSString *)teamId
307- (void)updateMyCustomInfo:(NSString *)newInfo
308 inTeam:(NSString *)teamId
318- (void)addManagersToTeam:(NSString *)teamId
319 users:(NSArray<NSString *> *)users
329- (void)removeManagersFromTeam:(NSString *)teamId
330 users:(NSArray<NSString *> *)users
342- (void)transferManagerWithTeam:(NSString *)teamId
343 newOwnerId:(NSString *)newOwnerId
344 isLeave:(BOOL)isLeave
355- (void)acceptInviteWithTeam:(NSString*)teamId
356 invitorId:(NSString*)invitorId
368- (void)rejectInviteWithTeam:(NSString*)teamId
369 invitorId:(NSString*)invitorId
370 rejectReason:(NSString*)rejectReason
382 inTeam:(NSString *)teamId
404- (void)updateMuteState:(BOOL)mute
405 userId:(NSString *)userId
406 inTeam:(NSString *)teamId
417- (void)updateMuteState:(BOOL)mute
418 inTeam:(NSString *)teamId
430- (void)fetchTeamMembers:(NSString *)teamId
444- (void)fetchTeamMutedMembers:(NSString *)teamId
455- (void)getTeamMemberList:(NSString *)teamId
466- (void)fetchTeamMembersFromServer:(NSString *)teamId
475- (void)fetchInviterAccids:(NSString *)teamID
476 withTargetMembers:(NSArray<NSString *> *)memberIDs
485- (void)fetchTeamInfo:(NSString *)teamId
498 inTeam:(NSString *)teamId;
516- (BOOL)updateTInfosLocal:(NSArray<
NIMTeam *> *) teams;
543- (void)addTeamMembersFollow:(NSString *)teamId
544 accoutIds:(NSArray <NSString*>*)accoutIds
555- (void)removeTeamMembersFollow:(NSString *)teamId
556 accoutIds:(NSArray <NSString*>*)accoutIds
564- (void)addDelegate:(
id<NIMTeamManagerDelegate>)delegate;
571- (void)removeDelegate:(
id<NIMTeamManagerDelegate>)delegate;
NIMTeamBeInviteMode
Definition: NIMTeamDefs.h:72
void(^ NIMTeamSearchHandler)(NSError *__nullable error, NSArray< NIMTeam * > *__nullable teams)
Definition: NIMTeamDefs.h:216
void(^ NIMTeamHandler)(NSError *__nullable error)
Definition: NIMTeamDefs.h:199
NIMTeamNotifyState
Definition: NIMTeamDefs.h:160
void(^ NIMTeamFetchInfoHandler)(NSError *__nullable error, NIMTeam *__nullable team)
Definition: NIMTeamDefs.h:241
NIMTeamUpdateClientCustomMode
Definition: NIMTeamDefs.h:102
void(^ NIMTeamFetchInviterAccidsHandler)(NSError *__nullable error, NSDictionary< NSString *, NSString * > *__nullable inviters)
Definition: NIMTeamDefs.h:257
NIMTeamJoinMode
Definition: NIMTeamDefs.h:37
void(^ NIMTeamFetchTeamsHandler)(NSError *__nullable error, NSArray< NIMTeam * > *__nullable teams)
Definition: NIMTeamDefs.h:265
void(^ NIMTeamCreateHandler)(NSError *__nullable error, NSString *__nullable teamId, NSArray< NSString * > *__nullable failedUserIds)
Definition: NIMTeamDefs.h:208
NIMTeamInviteMode
Definition: NIMTeamDefs.h:55
void(^ NIMTeamMemberSearchResultHandler)(NSError *__nullable error, NIMTeamMemberSearchResult *__nullable result)
Definition: NIMTeamDefs.h:233
void(^ NIMTeamApplyHandler)(NSError *__nullable error, NIMTeamApplyStatus applyStatus)
Definition: NIMTeamDefs.h:249
NIMTeamUpdateInfoMode
Definition: NIMTeamDefs.h:87
void(^ NIMTeamFetchTeamInfoListHandler)(NSError *__nullable error, NSArray< NIMTeam * > *__nullable teams, NSArray< NSString * > *__nullable failedTeamIds)
Definition: NIMTeamDefs.h:273
void(^ NIMTeamMemberHandler)(NSError *__nullable error, NSArray< NIMTeamMember * > *__nullable members)
Definition: NIMTeamDefs.h:224
Definition: NIMCreateTeamExOption.h:16
Definition: NIMCreateTeamOption.h:18
Definition: NIMTeamMember.h:17
Definition: NIMTeamMemberSearchOption.h:30
Definition: NIMTeamSearchOption.h:29