FLEXSystemLogMessage.h 756 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // FLEXSystemLogMessage.h
  3. // FLEX
  4. //
  5. // Created by Ryan Olson on 1/25/15.
  6. // Copyright (c) 2020 FLEX Team. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <asl.h>
  10. #import "ActivityStreamAPI.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface FLEXSystemLogMessage : NSObject
  13. + (instancetype)logMessageFromASLMessage:(aslmsg)aslMessage;
  14. + (instancetype)logMessageFromDate:(NSDate *)date text:(NSString *)text;
  15. // ASL specific properties
  16. @property (nonatomic, readonly, nullable) NSString *sender;
  17. @property (nonatomic, readonly, nullable) aslmsg aslMessage;
  18. @property (nonatomic, readonly) NSDate *date;
  19. @property (nonatomic, readonly) NSString *messageText;
  20. @property (nonatomic, readonly) long long messageID;
  21. @end
  22. NS_ASSUME_NONNULL_END