DBTEAMLOGGeoLocationLogInfo

@interface DBTEAMLOGGeoLocationLogInfo : NSObject <DBSerializable, NSCopying>

The GeoLocationLogInfo struct.

Geographic location details.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

  • City name.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *city;

    Swift

    var city: String? { get }
  • Region name.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *region;

    Swift

    var region: String? { get }
  • Country code.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *country;

    Swift

    var country: String? { get }
  • IP address.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull ipAddress;

    Swift

    var ipAddress: String { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithIpAddress:(nonnull NSString *)ipAddress
                                         city:(nullable NSString *)city
                                       region:(nullable NSString *)region
                                      country:(nullable NSString *)country;

    Swift

    init(ipAddress: String, city: String?, region: String?, country: String?)

    Parameters

    ipAddress

    IP address.

    city

    City name.

    region

    Region name.

    country

    Country code.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithIpAddress:(nonnull NSString *)ipAddress;

    Swift

    init(ipAddress: String)

    Parameters

    ipAddress

    IP address.

    Return Value

    An initialized instance.