DBAUTHTokenFromOAuth1Error

Objective-C

@interface DBAUTHTokenFromOAuth1Error : NSObject <DBSerializable, NSCopying>

Swift

class DBAUTHTokenFromOAuth1Error : NSObject, DBSerializable, NSCopying

The TokenFromOAuth1Error union.

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

Instance fields

Constructors

  • Initializes union class with tag state of “invalid_oauth1_token_info”.

    Description of the “invalid_oauth1_token_info” tag state: Part or all of the OAuth 1.0 access token info is invalid.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithInvalidOauth1TokenInfo;

    Swift

    init(invalidOauth1TokenInfo: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “app_id_mismatch”.

    Description of the “app_id_mismatch” tag state: The authorized app does not match the app associated with the supplied access token.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAppIdMismatch;

    Swift

    init(appIdMismatch: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “other”.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOther;

    Swift

    init(other: ())

    Return Value

    An initialized instance.

Tag state methods

  • Retrieves whether the union’s current tag state has value “invalid_oauth1_token_info”.

    Declaration

    Objective-C

    - (BOOL)isInvalidOauth1TokenInfo;

    Swift

    func isInvalidOauth1TokenInfo() -> Bool

    Return Value

    Whether the union’s current tag state has value “invalid_oauth1_token_info”.

  • Retrieves whether the union’s current tag state has value “app_id_mismatch”.

    Declaration

    Objective-C

    - (BOOL)isAppIdMismatch;

    Swift

    func isAppIdMismatch() -> Bool

    Return Value

    Whether the union’s current tag state has value “app_id_mismatch”.

  • Retrieves whether the union’s current tag state has value “other”.

    Declaration

    Objective-C

    - (BOOL)isOther;

    Swift

    func isOther() -> Bool

    Return Value

    Whether the union’s current tag state has value “other”.

  • Retrieves string value of union’s current tag state.

    Declaration

    Objective-C

    - (nonnull NSString *)tagName;

    Swift

    func tagName() -> String

    Return Value

    A human-readable string representing the union’s current tag state.