You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
748 B

  1. //
  2. // FLEXSystemLogMessage.h
  3. // FLEX
  4. //
  5. // Created by Ryan Olson on 1/25/15.
  6. // Copyright (c) 2015 f. 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