DBTEAMLOGGetTeamEventsError

Objective-C

@interface DBTEAMLOGGetTeamEventsError : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMLOGGetTeamEventsError : NSObject, DBSerializable, NSCopying

The GetTeamEventsError union.

Errors that can be raised when calling getEvents.

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 “account_id_not_found”.

    Description of the “account_id_not_found” tag state: No user found matching the provided account_id.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAccountIdNotFound;

    Swift

    init(accountIdNotFound: ())

    Return Value

    An initialized instance.

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

    Description of the “invalid_time_range” tag state: Invalid time range.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithInvalidTimeRange;

    Swift

    init(invalidTimeRange: ())

    Return Value

    An initialized instance.

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

    Description of the “invalid_filters” tag state: Invalid filters. Do not specify both event_type and category parameters for the same call.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithInvalidFilters;

    Swift

    init(invalidFilters: ())

    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 “account_id_not_found”.

    Declaration

    Objective-C

    - (BOOL)isAccountIdNotFound;

    Swift

    func isAccountIdNotFound() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isInvalidTimeRange;

    Swift

    func isInvalidTimeRange() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isInvalidFilters;

    Swift

    func isInvalidFilters() -> Bool

    Return Value

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

  • 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.