TUISystemMessageCellData.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // Created by Tencent on 2023/06/09.
  2. // Copyright © 2023 Tencent. All rights reserved.
  3. /**
  4. * This file declares the TUISystemMessageCellData class.
  5. * This class inherits from TUIMessageCellData and is used to store a series of data and information required by the system message unit.
  6. */
  7. #import "TUIMessageCellData.h"
  8. NS_ASSUME_NONNULL_BEGIN
  9. typedef NS_ENUM(NSInteger, TUISystemMessageType) {
  10. TUISystemMessageTypeUnknown = 0,
  11. TUISystemMessageTypeDate = 1,
  12. };
  13. /**
  14. * 【Module name】TUISystemMessageCellData
  15. * 【Function description】The datasource of system message unit.
  16. */
  17. @interface TUISystemMessageCellData : TUIMessageCellData
  18. /**
  19. * The content of system message, such as "You recalled a message.".
  20. */
  21. @property(nonatomic, strong) NSString *content;
  22. /**
  23. * The flag of whether supporting re-edit.
  24. */
  25. @property(nonatomic, assign) BOOL supportReEdit;
  26. /**
  27. * Mutable string
  28. * The recalled message can be re-edited within 2 minutes, which is displayed here based on attributedString.
  29. */
  30. @property(nonatomic, strong, nullable) NSMutableAttributedString *attributedString;
  31. /**
  32. * The font of label which displays the system message content.
  33. */
  34. @property(nonatomic, strong, nullable) UIFont *contentFont;
  35. /**
  36. * The color of label which displays the system message content.
  37. */
  38. @property(nonatomic, strong, nullable) UIColor *contentColor;
  39. /**
  40. * The type of system message type, default is TUISystemMessageTypeUnknown
  41. */
  42. @property(nonatomic, assign) TUISystemMessageType type;
  43. @property(nonatomic, strong) NSArray<NSString *> *replacedUserIDList;
  44. /**
  45. * The font of label which displays the system message content.
  46. */
  47. @property(nonatomic, class) UIFont *textFont;
  48. /**
  49. * The color of label which displays the system message content.
  50. */
  51. @property(nonatomic, class) UIColor *textColor;
  52. /**
  53. * The background color of label which displays the system message content.
  54. */
  55. @property(nonatomic, class) UIColor *textBackgroundColor;
  56. @end
  57. NS_ASSUME_NONNULL_END