HyphenateChatSDK 4.10.0
EMGroup.h
1
15#import <Foundation/Foundation.h>
16
17#import "EMCommonDefs.h"
18#import "EMGroupOptions.h"
20
28typedef NS_ENUM(NSInteger, EMGroupPermissionType) {
29 EMGroupPermissionTypeNone = -1,
30 EMGroupPermissionTypeMember = 0,
31 EMGroupPermissionTypeAdmin,
32 EMGroupPermissionTypeOwner,
33};
34
42@interface EMGroup : NSObject
43
51@property (nonatomic, copy, readonly) NSString *groupId;
52
60@property (nonatomic, copy, readonly) NSString *groupName;
61
69@property (nonatomic, copy, readonly) NSString *description;
70
78@property (nonatomic, copy, readonly) NSString *announcement;
79
87@property (nonatomic, strong, readonly) EMGroupOptions *settings;
88
100@property (nonatomic, copy, readonly) NSString *owner;
101
111@property (nonatomic, copy, readonly) NSArray<NSString *> *adminList;
112
120@property (nonatomic, copy, readonly) NSArray<NSString *> *memberList;
121
133@property (nonatomic, strong, readonly) NSArray<NSString *> *blacklist;
134
146@property (nonatomic, strong, readonly) NSArray<NSString *> *muteList;
147
148
160@property (nonatomic, strong, readonly) NSArray<NSString *> *whiteList;
161
169@property (nonatomic, strong, readonly) NSArray<EMGroupSharedFile *> *sharedFileList;
170
178@property (nonatomic, readonly) BOOL isPushNotificationEnabled;
179
187@property (nonatomic, readonly) BOOL isPublic;
188
196@property (nonatomic, readonly) BOOL isBlocked;
197
205@property (nonatomic, readonly) EMGroupPermissionType permissionType;
206
214@property (nonatomic, strong, readonly) NSArray<NSString *> *users;
215
223@property (nonatomic, readonly) NSInteger occupantsCount;
224
232@property (nonatomic, readonly) BOOL isMuteAllMembers;
233
241 @property (nonatomic, readonly) BOOL isDisabled;
242
258+ (instancetype)groupWithId:(NSString *)aGroupId;
259
260#pragma mark - EM_DEPRECATED_IOS 3.8.8
272@property (nonatomic, strong, readonly) EMGroupOptions *setting __deprecated_msg("Use settings instead");
273
285@property (nonatomic, strong, readonly) NSArray *occupants
286__deprecated_msg("Use users instead");
287
288@end
Definition: EMGroup.h:43
BOOL isBlocked
Definition: EMGroup.h:196
NSString * description
Definition: EMGroup.h:69
NSString * announcement
Definition: EMGroup.h:78
BOOL isMuteAllMembers
Definition: EMGroup.h:232
NSArray< NSString * > * muteList
Definition: EMGroup.h:146
NSArray< NSString * > * users
Definition: EMGroup.h:214
EMGroupOptions * settings
Definition: EMGroup.h:87
NSString * groupId
Definition: EMGroup.h:51
BOOL isDisabled
Definition: EMGroup.h:241
NSInteger occupantsCount
Definition: EMGroup.h:223
NSArray< NSString * > * whiteList
Definition: EMGroup.h:160
BOOL isPushNotificationEnabled
Definition: EMGroup.h:178
NSArray *occupants __deprecated_msg("Use users instead")
EMGroupPermissionType permissionType
Definition: EMGroup.h:205
NSArray< NSString * > * memberList
Definition: EMGroup.h:120
NSArray< NSString * > * adminList
Definition: EMGroup.h:111
NSString * groupName
Definition: EMGroup.h:60
EMGroupOptions *setting __deprecated_msg("Use settings instead")
NSArray< NSString * > * blacklist
Definition: EMGroup.h:133
NSString * owner
Definition: EMGroup.h:100
NSArray< EMGroupSharedFile * > * sharedFileList
Definition: EMGroup.h:169
BOOL isPublic
Definition: EMGroup.h:187
Definition: EMGroupOptions.h:42
Definition: EMGroupSharedFile.h:24