IMMessageItem.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #import "IMItem.h"
  2. typedef NS_OPTIONS(unsigned long long, IMMessageItemFlags) {
  3. IMMessageItemFlagsFinished = 0x1
  4. };
  5. @interface IMMessageItem : IMItem
  6. @property (nonatomic, retain) NSDate *timeDelivered;
  7. @property (nonatomic, retain) NSDate *timePlayed;
  8. @property (nonatomic, retain) NSDate *timeRead;
  9. @property (nonatomic, retain) NSString *subject;
  10. @property (nonatomic, retain) NSAttributedString *body;
  11. @property (nonatomic, retain) NSData *bodyData;
  12. @property (nonatomic, retain) NSString *plainBody;
  13. @property (nonatomic) IMMessageItemFlags flags;
  14. @property (nonatomic) NSUInteger errorCode;
  15. @property (nonatomic) long long expireState;
  16. @property (nonatomic) long long replaceID;
  17. @property (nonatomic) BOOL hasDataDetectorResults;
  18. @property (nonatomic, retain) NSArray *fileTransferGUIDs;
  19. @property (nonatomic, readonly) BOOL isAlert;
  20. @property (nonatomic, readonly) BOOL isAudioMessage;
  21. @property (nonatomic, readonly) BOOL isDelivered;
  22. @property (nonatomic, readonly) BOOL isEmote;
  23. @property (nonatomic, readonly) BOOL isEmpty;
  24. @property (nonatomic, readonly) BOOL isExpirable;
  25. @property (nonatomic, readonly) BOOL isFinished;
  26. @property (nonatomic, readonly) BOOL isFromExternalSource;
  27. @property (nonatomic, readonly) BOOL isLocatingMessage;
  28. @property (nonatomic, readonly) BOOL isPlayed;
  29. @property (nonatomic, readonly) BOOL isPrepared;
  30. @property (nonatomic, readonly) BOOL isRead;
  31. @property (nonatomic, readonly) BOOL isSent;
  32. @property (nonatomic, readonly) BOOL isTypingMessage;
  33. @property (nonatomic, readonly) BOOL wasDataDetected;
  34. @property (nonatomic, readonly) BOOL wasDowngraded;
  35. @end