DBFILESGetTemporaryLinkResult
Objective-C
@interface DBFILESGetTemporaryLinkResult : NSObject <DBSerializable, NSCopying>
Swift
class 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 (nonatomic, readonly) DBFILESFileMetadata *_Nonnull metadata;
Swift
var metadata: DBFILESFileMetadata { get }
-
The temporary link which can be used to stream content the file.
Declaration
Objective-C
@property (nonatomic, copy, readonly) 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.