DBTEAMLOGAssetLogInfo
Objective-C
@interface DBTEAMLOGAssetLogInfo : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMLOGAssetLogInfo : NSObject, DBSerializable, NSCopying
The AssetLogInfo
union.
Asset details.
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) DBTEAMLOGAssetLogInfoTag tag;
Swift
var tag: DBTEAMLOGAssetLogInfoTag { get }
-
File’s details. - note: Ensure the
isFile
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGFileLogInfo *_Nonnull file;
Swift
var file: DBTEAMLOGFileLogInfo { get }
-
Folder’s details. - note: Ensure the
isFolder
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGFolderLogInfo *_Nonnull folder;
Swift
var folder: DBTEAMLOGFolderLogInfo { get }
-
Paper document’s details. - note: Ensure the
isPaperDocument
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGPaperDocumentLogInfo *_Nonnull paperDocument;
Swift
var paperDocument: DBTEAMLOGPaperDocumentLogInfo { get }
-
Paper folder’s details. - note: Ensure the
isPaperFolder
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGPaperFolderLogInfo *_Nonnull paperFolder;
Swift
var paperFolder: DBTEAMLOGPaperFolderLogInfo { get }
-
Showcase document’s details. - note: Ensure the
isShowcaseDocument
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMLOGShowcaseDocumentLogInfo *_Nonnull showcaseDocument;
Swift
var showcaseDocument: DBTEAMLOGShowcaseDocumentLogInfo { get }
-
Initializes union class with tag state of “file”.
Description of the “file” tag state: File’s details.
Declaration
Objective-C
- (nonnull instancetype)initWithFile:(nonnull DBTEAMLOGFileLogInfo *)file;
Swift
init(file: DBTEAMLOGFileLogInfo)
Parameters
file
File’s details.
Return Value
An initialized instance.
-
Initializes union class with tag state of “folder”.
Description of the “folder” tag state: Folder’s details.
Declaration
Objective-C
- (nonnull instancetype)initWithFolder:(nonnull DBTEAMLOGFolderLogInfo *)folder;
Swift
init(folder: DBTEAMLOGFolderLogInfo)
Parameters
folder
Folder’s details.
Return Value
An initialized instance.
-
Initializes union class with tag state of “paper_document”.
Description of the “paper_document” tag state: Paper document’s details.
Declaration
Objective-C
- (nonnull instancetype)initWithPaperDocument: (nonnull DBTEAMLOGPaperDocumentLogInfo *)paperDocument;
Swift
init(paperDocument: DBTEAMLOGPaperDocumentLogInfo)
Parameters
paperDocument
Paper document’s details.
Return Value
An initialized instance.
-
Initializes union class with tag state of “paper_folder”.
Description of the “paper_folder” tag state: Paper folder’s details.
Declaration
Objective-C
- (nonnull instancetype)initWithPaperFolder: (nonnull DBTEAMLOGPaperFolderLogInfo *)paperFolder;
Swift
init(paperFolder: DBTEAMLOGPaperFolderLogInfo)
Parameters
paperFolder
Paper folder’s details.
Return Value
An initialized instance.
-
Initializes union class with tag state of “showcase_document”.
Description of the “showcase_document” tag state: Showcase document’s details.
Declaration
Objective-C
- (nonnull instancetype)initWithShowcaseDocument: (nonnull DBTEAMLOGShowcaseDocumentLogInfo *)showcaseDocument;
Swift
init(showcaseDocument: DBTEAMLOGShowcaseDocumentLogInfo)
Parameters
showcaseDocument
Showcase document’s details.
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 “file”.
Note
Call this method and ensure it returns true before accessing the
file
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isFile;
Swift
func isFile() -> Bool
Return Value
Whether the union’s current tag state has value “file”.
-
Retrieves whether the union’s current tag state has value “folder”.
Note
Call this method and ensure it returns true before accessing the
folder
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isFolder;
Swift
func isFolder() -> Bool
Return Value
Whether the union’s current tag state has value “folder”.
-
Retrieves whether the union’s current tag state has value “paper_document”.
Note
Call this method and ensure it returns true before accessing the
paperDocument
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isPaperDocument;
Swift
func isPaperDocument() -> Bool
Return Value
Whether the union’s current tag state has value “paper_document”.
-
Retrieves whether the union’s current tag state has value “paper_folder”.
Note
Call this method and ensure it returns true before accessing the
paperFolder
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isPaperFolder;
Swift
func isPaperFolder() -> Bool
Return Value
Whether the union’s current tag state has value “paper_folder”.
-
Retrieves whether the union’s current tag state has value “showcase_document”.
Note
Call this method and ensure it returns true before accessing the
showcaseDocument
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isShowcaseDocument;
Swift
func isShowcaseDocument() -> Bool
Return Value
Whether the union’s current tag state has value “showcase_document”.
-
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.