DBFILESGetThumbnailBatchResultEntry
Objective-C
@interface DBFILESGetThumbnailBatchResultEntry
: NSObject <DBSerializable, NSCopying>
Swift
class DBFILESGetThumbnailBatchResultEntry : NSObject, DBSerializable, NSCopying
The GetThumbnailBatchResultEntry 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) DBFILESGetThumbnailBatchResultEntryTag tag;Swift
var tag: DBFILESGetThumbnailBatchResultEntryTag { get } -
(no description). - note: Ensure the
isSuccessmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBFILESGetThumbnailBatchResultData *_Nonnull success;Swift
var success: DBFILESGetThumbnailBatchResultData { get } -
The result for this file if it was an error. - note: Ensure the
isFailuremethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBFILESThumbnailError *_Nonnull failure;Swift
var failure: DBFILESThumbnailError { get }
-
Initializes union class with tag state of “success”.
Declaration
Objective-C
- (nonnull instancetype)initWithSuccess: (nonnull DBFILESGetThumbnailBatchResultData *)success;Swift
init(success: DBFILESGetThumbnailBatchResultData)Parameters
success(no description).
Return Value
An initialized instance.
-
Initializes union class with tag state of “failure”.
Description of the “failure” tag state: The result for this file if it was an error.
Declaration
Objective-C
- (nonnull instancetype)initWithFailure: (nonnull DBFILESThumbnailError *)failure;Swift
init(failure: DBFILESThumbnailError)Parameters
failureThe result for this file if it was an error.
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 “success”.
Note
Call this method and ensure it returns true before accessing the
successproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isSuccess;Swift
func isSuccess() -> BoolReturn Value
Whether the union’s current tag state has value “success”.
-
Retrieves whether the union’s current tag state has value “failure”.
Note
Call this method and ensure it returns true before accessing the
failureproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isFailure;Swift
func isFailure() -> BoolReturn Value
Whether the union’s current tag state has value “failure”.
-
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;Swift
func isOther() -> BoolReturn 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() -> StringReturn Value
A human-readable string representing the union’s current tag state.
View on GitHub
DBFILESGetThumbnailBatchResultEntry Class Reference