EMSilentModeResult.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //
  2. // EMSilentModeResult.h
  3. // HyphenateChat
  4. //
  5. // Created by hxq on 2022/3/30.
  6. // Copyright © 2022 easemob.com. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "EMSilentModeTime.h"
  10. #import "EMSilentModeParam.h"
  11. #import "EMConversation.h"
  12. /**
  13. * \~chinese
  14. * 消息免打扰配置的结果类
  15. *
  16. * \~english
  17. * The silent message result object
  18. */
  19. @interface EMSilentModeResult: NSObject <NSCopying,NSCoding>
  20. /*!
  21. * \~chinese
  22. * 消息免打扰过期时间戳。
  23. *
  24. * \~english
  25. * The expiration time for silent messages.
  26. *
  27. */
  28. @property (nonatomic, assign, readonly) NSTimeInterval expireTimestamp;
  29. /*!
  30. * \~chinese
  31. * 离线推送提醒类型。
  32. *
  33. * \~english
  34. * The remind type for push messages.
  35. */
  36. @property (nonatomic, assign, readonly) EMPushRemindType remindType;
  37. /*!
  38. * \~chinese
  39. * 消息免打扰时段的开始时间。
  40. *
  41. * \~english
  42. * The start time obtained after the silent message is set.
  43. *
  44. */
  45. @property (nonatomic, strong, readonly) EMSilentModeTime * _Nullable silentModeStartTime;
  46. /*!
  47. * \~chinese
  48. * 消息免打扰时段的结束时间。
  49. *
  50. * \~english
  51. * The end time obtained after the silent message is set.
  52. *
  53. */
  54. @property (nonatomic, strong, readonly) EMSilentModeTime *_Nullable silentModeEndTime;
  55. /*!
  56. * \~chinese
  57. * 会话ID。
  58. *
  59. * \~english
  60. * The conversation ID.
  61. *
  62. */
  63. @property (nonatomic, copy, readonly) NSString * _Nonnull conversationID;
  64. /*!
  65. * \~chinese
  66. * 会话类型。
  67. *
  68. * \~english
  69. * The conversation type.
  70. *
  71. */
  72. @property (nonatomic, assign, readonly) EMConversationType conversationType;
  73. /*!
  74. * \~chinese
  75. * 会话是否设置过消息提醒类型。
  76. *
  77. * \~english
  78. * Whether the remind type is set for the conversation.
  79. *
  80. */
  81. @property (nonatomic, assign, readonly) BOOL isConversationRemindTypeEnabled;
  82. @end