OfflinePushExtBusinessInfo.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // OfflinePushExtBusinessInfo.h
  3. // TUICore
  4. //
  5. // Created by cologne on 2024/3/19.
  6. // Copyright © 2024 Tencent. All rights reserved.
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. // Common feature function class instance
  10. @interface OfflinePushExtBusinessInfo : NSObject
  11. /**
  12. * Set the version number of offline messages
  13. */
  14. @property(nonatomic, assign) NSInteger version;
  15. /**
  16. * Set the chat type of offline messages sent by the identifier (1: Single chat; 2: Group chat)
  17. */
  18. @property(nonatomic, assign) NSInteger chatType;
  19. /**
  20. * Set the type of offline messages sent by the identity (1:Chat Message; 2: Call Message)
  21. */
  22. @property(nonatomic, assign) NSInteger action;
  23. /**
  24. * Set the sender ID that identifies offline messages (the userID or groupID of the sender can identify the chatID of the chat)
  25. */
  26. @property(nonatomic, copy) NSString *sender;
  27. /**
  28. * Identifies the sender nickname of offline messages
  29. */
  30. @property(nonatomic, copy) NSString *nickname;
  31. /**
  32. * Sender avatar for offline messages
  33. */
  34. @property(nonatomic, copy) NSString *faceUrl;
  35. /**
  36. * Display fields for offline messages
  37. */
  38. @property(nonatomic, copy) NSString *content;
  39. /**
  40. * Set custom data (will be completely transparently transmitted to the receiving end)
  41. */
  42. @property(nonatomic, strong) NSData *customData;
  43. - (void)configWithEntityDic:(NSDictionary *)entityDic;
  44. - (NSDictionary *)toReportData;
  45. @end
  46. NS_ASSUME_NONNULL_END