DBOPENIDUserInfoResult

Objective-C

@interface DBOPENIDUserInfoResult : NSObject <DBSerializable, NSCopying>

Swift

class DBOPENIDUserInfoResult : NSObject, DBSerializable, NSCopying

The UserInfoResult struct.

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

Instance fields

  • Last name of user.

    Declaration

    Objective-C

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

    Swift

    var familyName: String? { get }
  • First name of user.

    Declaration

    Objective-C

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

    Swift

    var givenName: String? { get }
  • Email address of user.

    Declaration

    Objective-C

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

    Swift

    var email: String? { get }
  • If user is email verified.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *emailVerified;

    Swift

    var emailVerified: NSNumber? { get }
  • iss

    Issuer of token (in this case Dropbox).

    Declaration

    Objective-C

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

    Swift

    var iss: String { get }
  • sub

    An identifier for the user. This is the Dropbox account_id, a string value such as dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc.

    Declaration

    Objective-C

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

    Swift

    var sub: String { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFamilyName:(nullable NSString *)familyName
                                     givenName:(nullable NSString *)givenName
                                         email:(nullable NSString *)email
                                 emailVerified:(nullable NSNumber *)emailVerified
                                           iss:(nullable NSString *)iss
                                           sub:(nullable NSString *)sub;

    Swift

    init(familyName: String?, givenName: String?, email: String?, emailVerified: NSNumber?, iss: String?, sub: String?)

    Parameters

    familyName

    Last name of user.

    givenName

    First name of user.

    email

    Email address of user.

    emailVerified

    If user is email verified.

    iss

    Issuer of token (in this case Dropbox).

    sub

    An identifier for the user. This is the Dropbox account_id, a string value such as dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc.

    Return Value

    An initialized instance.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initDefault;

    Swift

    init(default: ())

    Return Value

    An initialized instance.