NIMSDK-iOS
载入中...
搜索中...
未找到
NIMQChatInviteApplyHistoryRecord.h
浏览该文件的文档.
1//
2// NIMQChatServerMember.h
3// NIMSDK
4//
5// Created by Netease.
6// Copyright © 2022 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "NIMQChatDefs.h"
11
12@protocol NIMQChatInviteApplyData;
13
14NS_ASSUME_NONNULL_BEGIN
15
16/**
17 * 申请邀请类型
18 */
19typedef NS_ENUM(NSInteger, NIMQChatInviteApplyInfoTypeTag) {
20 /**
21 * 申请(个人+服务器)
22 */
24 /**
25 * 邀请(服务器)
26 */
28 /**
29 * 邀请ack(个人+服务器)
30 */
32 /**
33 * 邀请码(服务器)
34 */
36 /**
37 * 通过邀请码加入(个人+服务器)
38 */
40};
41
42typedef NS_ENUM(NSInteger, NIMQChatInviteApplyInfoStatusTag) {
43 /**
44 * 初始状态
45 */
47 /**
48 * 同意
49 */
51 /**
52 * 拒绝
53 */
55 /**
56 * 通过其他 申请/邀请 同意了
57 */
59 /**
60 * 通过其他 申请/邀请 拒绝了
61 */
63 /**
64 * 邀请/申请时自动加入
65 */
67 /**
68 * 过期
69 */
71};
72
73@interface NIMQChatInviteApplyHistoryRecord : NSObject <NSCopying>
74
75/**
76 * accid
77 */
78@property(nullable, nonatomic, copy) NSString *accid;
79
80/**
81 * 申请邀请类型
82 */
83@property(nonatomic, assign) NIMQChatInviteApplyInfoTypeTag type;
84
85/**
86 * 关联的serverId
87 */
88@property(nonatomic, assign) unsigned long long serverId;
89
90/**
91 * 状态,0表示初始状态,1表示同意,2表示拒绝,3表示通过其他 申请/邀请 同意了,4表示通过其他 申请/邀请 拒绝了,5表示邀请/申请时自动加入,6表示过期
92 */
93@property(nonatomic, assign) NIMQChatInviteApplyInfoStatusTag status;
94
95/**
96 * 申请/邀请唯一标识
97 */
98@property(nonatomic, assign) long long requestId;
99
100/**
101 * 创建时间
102 */
103@property(nonatomic, assign) NSTimeInterval createTime;
104
105/**
106 * 更新时间
107 */
108@property(nonatomic, assign) NSTimeInterval updateTime;
109
110/**
111 * 过期时间
112 */
113@property(nonatomic, assign) NSTimeInterval expireTime;
114
115/**
116 * 结果数据
117 */
118@property(nullable, nonatomic, copy) id<NIMQChatInviteApplyData> data;
119
120/**
121 * 记录唯一标识
122 */
123@property(nonatomic, assign) long recordId;
124
125
126@end
127
128NS_ASSUME_NONNULL_END
NIMQChatInviteApplyInfoTypeTag
Definition: NIMQChatInviteApplyHistoryRecord.h:19
@ NIMQChatInviteApplyInfoTypeTagInvite
Definition: NIMQChatInviteApplyHistoryRecord.h:27
@ NIMQChatInviteApplyInfoTypeTagApply
Definition: NIMQChatInviteApplyHistoryRecord.h:23
@ NIMQChatInviteApplyInfoTypeTagInviteCode
Definition: NIMQChatInviteApplyHistoryRecord.h:35
@ NIMQChatInviteApplyInfoTypeTagInviteAck
Definition: NIMQChatInviteApplyHistoryRecord.h:31
@ NIMQChatInviteApplyInfoTypeTagInviteJoinByCode
Definition: NIMQChatInviteApplyHistoryRecord.h:39
NIMQChatInviteApplyInfoStatusTag
Definition: NIMQChatInviteApplyHistoryRecord.h:42
@ NIMQChatInviteApplyInfoStatusTagRefuseByInviteApply
Definition: NIMQChatInviteApplyHistoryRecord.h:62
@ NIMQChatInviteApplyInfoStatusTagAgreeByInviteApply
Definition: NIMQChatInviteApplyHistoryRecord.h:58
@ NIMQChatInviteApplyInfoStatusTagExpired
Definition: NIMQChatInviteApplyHistoryRecord.h:70
@ NIMQChatInviteApplyInfoStatusTagRefuse
Definition: NIMQChatInviteApplyHistoryRecord.h:54
@ NIMQChatInviteApplyInfoStatusTagAutoJoinByInviteApply
Definition: NIMQChatInviteApplyHistoryRecord.h:66
@ NIMQChatInviteApplyInfoStatusTagInit
Definition: NIMQChatInviteApplyHistoryRecord.h:46
@ NIMQChatInviteApplyInfoStatusTagAgree
Definition: NIMQChatInviteApplyHistoryRecord.h:50
Definition: NIMQChatInviteApplyHistoryRecord.h:73
NSString * accid
Definition: NIMQChatInviteApplyHistoryRecord.h:78
NSTimeInterval createTime
Definition: NIMQChatInviteApplyHistoryRecord.h:103
long long requestId
Definition: NIMQChatInviteApplyHistoryRecord.h:98
id< NIMQChatInviteApplyData > data
Definition: NIMQChatInviteApplyHistoryRecord.h:118
unsigned long long serverId
Definition: NIMQChatInviteApplyHistoryRecord.h:88
NSTimeInterval expireTime
Definition: NIMQChatInviteApplyHistoryRecord.h:113
long recordId
Definition: NIMQChatInviteApplyHistoryRecord.h:123
NIMQChatInviteApplyInfoStatusTag status
Definition: NIMQChatInviteApplyHistoryRecord.h:93
NIMQChatInviteApplyInfoTypeTag type
Definition: NIMQChatInviteApplyHistoryRecord.h:83
NSTimeInterval updateTime
Definition: NIMQChatInviteApplyHistoryRecord.h:108