TUIReplyPreviewData.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // TUIReplyPreviewData.h
  3. // TUIChat
  4. //
  5. // Created by wyl on 2022/3/22.
  6. // Copyright © 2023 Tencent. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "TUIChatDefine.h"
  10. @class V2TIMMessage;
  11. @interface TUIReplyPreviewData : NSObject
  12. /**
  13. * The message ID of the replyed original message
  14. */
  15. @property(nonatomic, copy) NSString *msgID;
  16. /**
  17. * The abstract of the replyed original message
  18. */
  19. @property(nonatomic, copy) NSString *msgAbstract;
  20. /**
  21. * The sender's displayname of the replyed original message. Nickname is prior than userID.
  22. */
  23. @property(nonatomic, copy) NSString *sender;
  24. /**
  25. * The faceURL of the replyed original message
  26. */
  27. @property(nonatomic, copy) NSString *faceURL;
  28. /**
  29. * The message type of the replyed original message. For details, see the enumeration value of V2TIMElemType.
  30. */
  31. @property(nonatomic, assign) NSInteger type;
  32. /**
  33. * The replyed original message
  34. */
  35. @property(nonatomic, strong) V2TIMMessage *originMessage;
  36. // Message reply root RootID (not necessarily the msgID of the originMessage above, but the ID of the message at the top)
  37. @property(nonatomic, copy) NSString *messageRootID;
  38. + (NSString *)displayAbstract:(NSInteger)type abstract:(NSString *)abstract withFileName:(BOOL)withFilename isRisk:(BOOL)isRisk;
  39. @end
  40. @interface TUIReferencePreviewData : TUIReplyPreviewData
  41. @end