mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 21:01:31 +03:00
56 lines
1.3 KiB
Objective-C
56 lines
1.3 KiB
Objective-C
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#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.
|
|
*/
|
|
- (instancetype)setString:(NSString *)value forKey:(NSString *)key NS_SWIFT_NAME(setEventProperty(_:forKey:));
|
|
|
|
/**
|
|
* Set a double property.
|
|
*
|
|
* @param value Property value. Must be finite (`NAN` and `INFINITY` not allowed).
|
|
* @param key Property key.
|
|
*/
|
|
- (instancetype)setDouble:(double)value forKey:(NSString *)key NS_SWIFT_NAME(setEventProperty(_:forKey:));
|
|
|
|
/**
|
|
* Set a 64-bit integer property.
|
|
*
|
|
* @param value Property value.
|
|
* @param key Property key.
|
|
*/
|
|
- (instancetype)setInt64:(int64_t)value forKey:(NSString *)key NS_SWIFT_NAME(setEventProperty(_:forKey:));
|
|
|
|
/**
|
|
* Set a boolean property.
|
|
*
|
|
* @param value Property value.
|
|
* @param key Property key.
|
|
*/
|
|
- (instancetype)setBool:(BOOL)value forKey:(NSString *)key NS_SWIFT_NAME(setEventProperty(_:forKey:));
|
|
|
|
/**
|
|
* Set a date property.
|
|
*
|
|
* @param value Property value.
|
|
* @param key Property key.
|
|
*/
|
|
- (instancetype)setDate:(NSDate *)value forKey:(NSString *)key NS_SWIFT_NAME(setEventProperty(_:forKey:));
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|