DBTEAMLOGUserNameLogInfo

Objective-C

@interface DBTEAMLOGUserNameLogInfo : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMLOGUserNameLogInfo : NSObject, DBSerializable, NSCopying

The UserNameLogInfo struct.

User’s name logged information

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

Instance fields

  • Given name.

    Declaration

    Objective-C

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

    Swift

    var givenName: String { get }
  • Surname.

    Declaration

    Objective-C

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

    Swift

    var surname: String { get }
  • Locale. Might be missing due to historical data gap.

    Declaration

    Objective-C

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

    Swift

    var locale: String? { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithGivenName:(nonnull NSString *)givenName
                                      surname:(nonnull NSString *)surname
                                       locale:(nullable NSString *)locale;

    Swift

    init(givenName: String, surname: String, locale: String?)

    Parameters

    givenName

    Given name.

    surname

    Surname.

    locale

    Locale. Might be missing due to historical data gap.

    Return Value

    An initialized instance.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithGivenName:(nonnull NSString *)givenName
                                      surname:(nonnull NSString *)surname;

    Swift

    init(givenName: String, surname: String)

    Parameters

    givenName

    Given name.

    surname

    Surname.

    Return Value

    An initialized instance.