DBFILESGetTemporaryLinkResult

@interface DBFILESGetTemporaryLinkResult : NSObject <DBSerializable, NSCopying>

The GetTemporaryLinkResult struct.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

  • Metadata of the file.

    Declaration

    Objective-C

    @property (readonly, nonatomic) DBFILESFileMetadata *_Nonnull metadata;

    Swift

    var metadata: DBFILESFileMetadata { get }
  • The temporary link which can be used to stream content the file.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull link;

    Swift

    var link: String { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMetadata:(nonnull DBFILESFileMetadata *)metadata
                                        link:(nonnull NSString *)link;

    Swift

    init(metadata: DBFILESFileMetadata, link: String)

    Parameters

    metadata

    Metadata of the file.

    link

    The temporary link which can be used to stream content the file.

    Return Value

    An initialized instance.