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.

Instance fields

Constructors

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

Tag state methods

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