NIMSDK-iOS
载入中...
搜索中...
未找到
NIMQChatServerRole.h
浏览该文件的文档.
1//
2// NIMQChatServerRole.h
3// NIMLib
4//
5// Created by Netease.
6// Copyright © 2022 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "NIMQChatDefs.h"
11
12NS_ASSUME_NONNULL_BEGIN
13
15
16/**
17 * 服务器身份组
18 */
19@interface NIMQChatServerRole : NSObject
20/**
21 * 服务器id
22 */
23@property (nonatomic, assign) unsigned long long serverId;
24/**
25 * 身份组id
26 */
27@property (nonatomic, assign) unsigned long long roleId;
28/**
29 * 名称
30 */
31@property (nonnull, nonatomic, copy) NSString *name;
32/**
33 * 类型
34 */
35@property (nonatomic, assign) NIMQChatRoleType type;
36/**
37 * icon图
38 */
39@property (nonatomic, copy) NSString *icon;
40/**
41 * 自定义扩展
42 */
43@property (nonatomic, copy) NSString *ext;
44/**
45 * 该身份组各资源的权限状态
46 */
47@property (nonatomic, copy) NSArray <NIMQChatPermissionStatusInfo *> *auths;
48/**
49 * 该身份组的成员数量,everyone身份组数量为-1
50 */
51@property (nonatomic, assign) NSInteger memberCount;
52/**
53 * 身份组优先级,everyone为0,custom 的优先级数字越小优先级越高,最高为1
54 */
55@property (nonatomic, strong) NSNumber *priority;
56/**
57 * 创建时间
58 */
59@property (nonatomic, assign) NSTimeInterval createTime;
60/**
61 * 更新时间
62 */
63@property (nonatomic, assign) NSTimeInterval updateTime;
64
65
66@end
67
68NS_ASSUME_NONNULL_END
NIMQChatRoleType
Definition: NIMQChatDefs.h:260
Definition: NIMQChatPermissionStatusInfo.h:15
Definition: NIMQChatServerRole.h:20
unsigned long long roleId
Definition: NIMQChatServerRole.h:27
NSInteger memberCount
Definition: NIMQChatServerRole.h:51
NIMQChatRoleType type
Definition: NIMQChatServerRole.h:35
unsigned long long serverId
Definition: NIMQChatServerRole.h:23
NSString * icon
Definition: NIMQChatServerRole.h:39
NSTimeInterval createTime
Definition: NIMQChatServerRole.h:59
NSNumber * priority
Definition: NIMQChatServerRole.h:55
NSArray< NIMQChatPermissionStatusInfo * > * auths
Definition: NIMQChatServerRole.h:47
NSTimeInterval updateTime
Definition: NIMQChatServerRole.h:63
NSString * ext
Definition: NIMQChatServerRole.h:43
NSString * name
Definition: NIMQChatServerRole.h:31