DBTEAMTeamFolderArchiveJobStatus
Objective-C
@interface DBTEAMTeamFolderArchiveJobStatus
: NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMTeamFolderArchiveJobStatus : NSObject, DBSerializable, NSCopying
The TeamFolderArchiveJobStatus 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) DBTEAMTeamFolderArchiveJobStatusTag tag;Swift
var tag: DBTEAMTeamFolderArchiveJobStatusTag { get } -
The archive job has finished. The value is the metadata for the resulting team folder. - note: Ensure the
isCompletemethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMTeamFolderMetadata *_Nonnull complete;Swift
var complete: DBTEAMTeamFolderMetadata { get } -
Error occurred while performing an asynchronous job from
teamFolderArchive. - note: Ensure theisFailedmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMTeamFolderArchiveError *_Nonnull failed;Swift
var failed: DBTEAMTeamFolderArchiveError { get }
-
Initializes union class with tag state of “in_progress”.
Description of the “in_progress” tag state: The asynchronous job is still in progress.
Declaration
Objective-C
- (nonnull instancetype)initWithInProgress;Swift
init(inProgress: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “complete”.
Description of the “complete” tag state: The archive job has finished. The value is the metadata for the resulting team folder.
Declaration
Objective-C
- (nonnull instancetype)initWithComplete: (nonnull DBTEAMTeamFolderMetadata *)complete;Swift
init(complete: DBTEAMTeamFolderMetadata)Parameters
completeThe archive job has finished. The value is the metadata for the resulting team folder.
Return Value
An initialized instance.
-
Initializes union class with tag state of “failed”.
Description of the “failed” tag state: Error occurred while performing an asynchronous job from
teamFolderArchive.Declaration
Objective-C
- (nonnull instancetype)initWithFailed: (nonnull DBTEAMTeamFolderArchiveError *)failed;Swift
init(failed: DBTEAMTeamFolderArchiveError)Parameters
failedError occurred while performing an asynchronous job from
teamFolderArchive.Return Value
An initialized instance.
-
Retrieves whether the union’s current tag state has value “in_progress”.
Declaration
Objective-C
- (BOOL)isInProgress;Swift
func isInProgress() -> BoolReturn Value
Whether the union’s current tag state has value “in_progress”.
-
Retrieves whether the union’s current tag state has value “complete”.
Note
Call this method and ensure it returns true before accessing the
completeproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isComplete;Swift
func isComplete() -> BoolReturn Value
Whether the union’s current tag state has value “complete”.
-
Retrieves whether the union’s current tag state has value “failed”.
Note
Call this method and ensure it returns true before accessing the
failedproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isFailed;Swift
func isFailed() -> BoolReturn Value
Whether the union’s current tag state has value “failed”.
-
Retrieves string value of union’s current tag state.
Declaration
Objective-C
- (nonnull NSString *)tagName;Swift
func tagName() -> StringReturn Value
A human-readable string representing the union’s current tag state.
View on GitHub
DBTEAMTeamFolderArchiveJobStatus Class Reference