WFCUFavoriteItem.h 942 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // WFCUFavoriteItem.h
  3. // WFChatUIKit
  4. //
  5. // Created by Tom Lee on 2020/11/1.
  6. // Copyright © 2020 Wildfirechat. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class WFCCConversation;
  11. @class WFCCMessageContent;
  12. @class WFCCMessage;
  13. @interface WFCUFavoriteItem : NSObject
  14. @property(nonatomic, assign)int favId;
  15. @property(nonatomic, assign)int64_t messageUid;
  16. @property(nonatomic, assign)int favType;
  17. @property(nonatomic, assign)int64_t timestamp;
  18. @property(nonatomic, strong)WFCCConversation *conversation;
  19. @property(nonatomic, strong)NSString *origin;
  20. @property(nonatomic, strong)NSString *sender;
  21. @property(nonatomic, strong)NSString *title;
  22. @property(nonatomic, strong)NSString *url;
  23. @property(nonatomic, strong)NSString *thumbUrl;
  24. @property(nonatomic, strong)NSString *data;
  25. + (WFCUFavoriteItem *)itemFromMessage:(WFCCMessage *)message;
  26. - (WFCCMessage *)toMessage;
  27. @end
  28. NS_ASSUME_NONNULL_END