DBTEAMTeamReportFailureReason
Objective-C
@interface DBTEAMTeamReportFailureReason : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMTeamReportFailureReason : NSObject, DBSerializable, NSCopying
The TeamReportFailureReason
union.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMTeamReportFailureReasonTag tag;
Swift
var tag: DBTEAMTeamReportFailureReasonTag { get }
-
Initializes union class with tag state of “temporary_error”.
Description of the “temporary_error” tag state: We couldn’t create the report, but we think this was a fluke. Everything should work if you try it again.
Declaration
Objective-C
- (nonnull instancetype)initWithTemporaryError;
Swift
init(temporaryError: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “many_reports_at_once”.
Description of the “many_reports_at_once” tag state: Too many other reports are being created right now. Try creating this report again once the others finish.
Declaration
Objective-C
- (nonnull instancetype)initWithManyReportsAtOnce;
Swift
init(manyReportsAtOnce: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “too_much_data”.
Description of the “too_much_data” tag state: We couldn’t create the report. Try creating the report again with less data.
Declaration
Objective-C
- (nonnull instancetype)initWithTooMuchData;
Swift
init(tooMuchData: ())
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.
-
Retrieves whether the union’s current tag state has value “temporary_error”.
Declaration
Objective-C
- (BOOL)isTemporaryError;
Swift
func isTemporaryError() -> Bool
Return Value
Whether the union’s current tag state has value “temporary_error”.
-
Retrieves whether the union’s current tag state has value “many_reports_at_once”.
Declaration
Objective-C
- (BOOL)isManyReportsAtOnce;
Swift
func isManyReportsAtOnce() -> Bool
Return Value
Whether the union’s current tag state has value “many_reports_at_once”.
-
Retrieves whether the union’s current tag state has value “too_much_data”.
Declaration
Objective-C
- (BOOL)isTooMuchData;
Swift
func isTooMuchData() -> Bool
Return Value
Whether the union’s current tag state has value “too_much_data”.
-
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.