EMSilentModeTime.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // EMSilentModeTime.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. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. * \~chinese
  12. * 消息免打扰的时间设置
  13. *
  14. * \~english
  15. * The silent message time object
  16. */
  17. @interface EMSilentModeTime : NSObject <NSCopying,NSCoding>
  18. /*!
  19. * \~chinese
  20. * 时间点的小时数(0-24的数值)。
  21. *
  22. * \~english
  23. * The number of hours at a time point (The values of 0 to 24).
  24. *
  25. */
  26. @property (nonatomic, assign, readonly) int hours;
  27. /*!
  28. * \~chinese
  29. * 时间点的分钟数(0-60的数值)。
  30. *
  31. * \~english
  32. * The number of minutes at a time point (The values of 0 to 60).
  33. *
  34. */
  35. @property (nonatomic, assign, readonly) int minutes;
  36. /**
  37. * \~chinese
  38. * 初始化时间点。
  39. *
  40. * @param aHours 小时。
  41. * @param aMinutes 分钟。
  42. *
  43. * @result 时间点实例。
  44. *
  45. * \~english
  46. * Initializes a time point instance.
  47. *
  48. * @param aHours The time point hours.
  49. * @param aMinutes The time point minutes.
  50. *
  51. * @Result The time point instance.
  52. */
  53. - (instancetype)initWithHours:(int)aHours minutes:(int)aMinutes;
  54. @end
  55. NS_ASSUME_NONNULL_END