2018-11-19 12:44:58 +03:00
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Contains typed event properties.
|
|
|
|
*/
|
|
|
|
@interface MSEventProperties : NSObject
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set a string property.
|
|
|
|
*
|
|
|
|
* @param value Property value.
|
|
|
|
* @param key Property key.
|
|
|
|
*/
|
2018-12-02 22:31:00 +03:00
|
|
|
- (instancetype)setString:(NSString *)value forKey:(NSString *)key NS_SWIFT_NAME(setEventProperty(_:forKey:));
|
2018-11-19 12:44:58 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set a double property.
|
|
|
|
*
|
|
|
|
* @param value Property value. Must be finite (`NAN` and `INFINITY` not allowed).
|
|
|
|
* @param key Property key.
|
|
|
|
*/
|
2018-12-02 22:31:00 +03:00
|
|
|
- (instancetype)setDouble:(double)value forKey:(NSString *)key NS_SWIFT_NAME(setEventProperty(_:forKey:));
|
2018-11-19 12:44:58 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set a 64-bit integer property.
|
|
|
|
*
|
|
|
|
* @param value Property value.
|
|
|
|
* @param key Property key.
|
|
|
|
*/
|
2018-12-02 22:31:00 +03:00
|
|
|
- (instancetype)setInt64:(int64_t)value forKey:(NSString *)key NS_SWIFT_NAME(setEventProperty(_:forKey:));
|
2018-11-19 12:44:58 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set a boolean property.
|
|
|
|
*
|
|
|
|
* @param value Property value.
|
|
|
|
* @param key Property key.
|
|
|
|
*/
|
2018-12-02 22:31:00 +03:00
|
|
|
- (instancetype)setBool:(BOOL)value forKey:(NSString *)key NS_SWIFT_NAME(setEventProperty(_:forKey:));
|
2018-11-19 12:44:58 +03:00
|
|
|
|
|
|
|
/**
|
2018-12-02 22:31:00 +03:00
|
|
|
* Set a date property.
|
2018-11-19 12:44:58 +03:00
|
|
|
*
|
|
|
|
* @param value Property value.
|
|
|
|
* @param key Property key.
|
|
|
|
*/
|
2018-12-02 22:31:00 +03:00
|
|
|
- (instancetype)setDate:(NSDate *)value forKey:(NSString *)key NS_SWIFT_NAME(setEventProperty(_:forKey:));
|
2018-11-19 12:44:58 +03:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|