mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 04:11:50 +03:00
55 lines
1.1 KiB
C
55 lines
1.1 KiB
C
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
@class MSDevice;
|
||
|
|
||
|
@protocol MSLog <NSObject>
|
||
|
|
||
|
/**
|
||
|
* Log type.
|
||
|
*/
|
||
|
@property(nonatomic, copy) NSString *type;
|
||
|
|
||
|
/**
|
||
|
* Log timestamp.
|
||
|
*/
|
||
|
@property(nonatomic) NSDate *timestamp;
|
||
|
|
||
|
/**
|
||
|
* A session identifier is used to correlate logs together. A session is an abstract concept in the API and is not necessarily an analytics
|
||
|
* session, it can be used to only track crashes.
|
||
|
*/
|
||
|
@property(nonatomic, copy) NSString *sid;
|
||
|
|
||
|
/**
|
||
|
* Optional distribution group ID value.
|
||
|
*/
|
||
|
@property(nonatomic, copy) NSString *distributionGroupId;
|
||
|
|
||
|
/**
|
||
|
* Device properties associated to this log.
|
||
|
*/
|
||
|
@property(nonatomic) MSDevice *device;
|
||
|
|
||
|
/**
|
||
|
* Checks if the object's values are valid.
|
||
|
*
|
||
|
* @return YES, if the object is valid.
|
||
|
*/
|
||
|
- (BOOL)isValid;
|
||
|
|
||
|
/**
|
||
|
* Adds a transmission target token that this log should be sent to.
|
||
|
*
|
||
|
* @param token The transmission target token.
|
||
|
*/
|
||
|
- (void)addTransmissionTargetToken:(NSString *)token;
|
||
|
|
||
|
/**
|
||
|
* Gets all transmission target tokens that this log should be sent to.
|
||
|
*
|
||
|
* @returns Collection of transmission target tokens that this log should be sent to.
|
||
|
*/
|
||
|
- (NSSet *)transmissionTargetTokens;
|
||
|
|
||
|
@end
|