2025-10-09 16:48:46 +08:00

69 lines
1.3 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// NIMQChatServerRole.h
// NIMLib
//
// Created by Netease.
// Copyright © 2022 Netease. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "NIMQChatDefs.h"
NS_ASSUME_NONNULL_BEGIN
@class NIMQChatPermissionStatusInfo;
/**
* 服务器身份组
*/
@interface NIMQChatServerRole : NSObject
/**
* 服务器id
*/
@property (nonatomic, assign) unsigned long long serverId;
/**
* 身份组id
*/
@property (nonatomic, assign) unsigned long long roleId;
/**
* 名称
*/
@property (nonnull, nonatomic, copy) NSString *name;
/**
* 类型
*/
@property (nonatomic, assign) NIMQChatRoleType type;
/**
* icon图
*/
@property (nonatomic, copy) NSString *icon;
/**
* 自定义扩展
*/
@property (nonatomic, copy) NSString *ext;
/**
* 该身份组各资源的权限状态
*/
@property (nonatomic, copy) NSArray <NIMQChatPermissionStatusInfo *> *auths;
/**
* 该身份组的成员数量everyone身份组数量为-1
*/
@property (nonatomic, assign) NSInteger memberCount;
/**
* 身份组优先级everyone为0custom 的优先级数字越小优先级越高最高为1
*/
@property (nonatomic, strong) NSNumber *priority;
/**
* 创建时间
*/
@property (nonatomic, assign) NSTimeInterval createTime;
/**
* 更新时间
*/
@property (nonatomic, assign) NSTimeInterval updateTime;
@end
NS_ASSUME_NONNULL_END