ESTDeviceSettingsAdvertiser
@interface ESTDeviceSettingsAdvertiser : ESTBaseVO <NSCopying>
This Value Object represents settings structure for generic packet.
-
Index of advertiser;
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSNumber *_Nonnull index;
Swift
var index: NSNumber { get }
-
Name of the advertiser.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull name;
Swift
var name: String { get }
-
Flag indicating if advertiser is enabled.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSNumber *_Nonnull enabled;
Swift
var enabled: NSNumber { get }
-
Broadcasting power of packet advertiser represented by ESTDeviceSettingsPacketSettingsPower1 enum.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSNumber *_Nonnull powerInDBm;
Swift
var powerInDBm: NSNumber { get }
-
Advertising interval of packet advertiser;
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSNumber *_Nonnull intervalInSeconds;
Swift
var intervalInSeconds: NSNumber { get }
-
Designated initializer.
Declaration
Objective-C
- (nonnull instancetype)initWithCloudDictionary: (nonnull NSDictionary *)dictionary;
Swift
init(cloudDictionary dictionary: [AnyHashable : Any])
Parameters
dictionary
Dictionary delivered from Estimote Cloud.
Return Value
Initialized object.
-
Method allows to update all fields of advertiser settings using other object of the same class. When field exists settings is overwritten if nil nothing happens.
Declaration
Objective-C
- (void)updateWithAdvertiserSettings: (nonnull ESTDeviceSettingsAdvertiser *)advertiserSettings;
Swift
func update(withAdvertiserSettings advertiserSettings: ESTDeviceSettingsAdvertiser)
Parameters
advertiserSettings
Object should be used to update settings.
-
Method for returning dictionary represantation of advertiser settings.
Declaration
Objective-C
- (nonnull NSDictionary *)cloudDictionary;
Swift
func cloudDictionary() -> [AnyHashable : Any]