NIMNetCallNotificationContent.h
1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// NIMNetCallNotificationContent.h
// NIMLib
//
// Created by Netease
// Copyright (c) 2015 Netease. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "NIMGlobalDefs.h"
#import "NIMNotificationContent.h"
NS_ASSUME_NONNULL_BEGIN
/**
* 网络电话类型
*/
typedef NS_ENUM(NSInteger, NIMNetCallEventType){
/**
* 对方拒接电话
*/
NIMNetCallEventTypeReject = -1,
/**
* 对方无人接听
*/
NIMNetCallEventTypeNoResponse = -2,
/**
* 未接电话
*/
NIMNetCallEventTypeMiss = 101,
/**
* 电话回单
*/
NIMNetCallEventTypeBill = 102,
};
/**
* 网络通话通知内容
*/
@interface NIMNetCallNotificationContent : NIMNotificationContent
/**
* 网络通话类型
*/
@property (nonatomic,assign) NIMNetCallType callType;
/**
* 操作类型
*/
@property (nonatomic,assign) NIMNetCallEventType eventType;
/**
* call id
*/
@property (nonatomic,assign) UInt64 callID;
/**
* 时长
*/
@property (nonatomic,assign) NSTimeInterval duration;
@end
NS_ASSUME_NONNULL_END