NIMNetCallNotificationContent.h 1.3 KB

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