DBFILESGetCopyReferenceResult

Objective-C

@interface DBFILESGetCopyReferenceResult : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESGetCopyReferenceResult : NSObject, DBSerializable, NSCopying

The GetCopyReferenceResult struct.

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

Instance fields

  • Metadata of the file or folder.

    Declaration

    Objective-C

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

    Swift

    var metadata: DBFILESMetadata { get }
  • A copy reference to the file or folder.

    Declaration

    Objective-C

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

    Swift

    var dCopyReference: String { get }
  • The expiration date of the copy reference. This value is currently set to be far enough in the future so that expiration is effectively not an issue.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSDate *_Nonnull expires;

    Swift

    var expires: Date { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMetadata:(nonnull DBFILESMetadata *)metadata
                              dCopyReference:(nonnull NSString *)dCopyReference
                                     expires:(nonnull NSDate *)expires;

    Swift

    init(metadata: DBFILESMetadata, dCopyReference: String, expires: Date)

    Parameters

    metadata

    Metadata of the file or folder.

    dCopyReference

    A copy reference to the file or folder.

    expires

    The expiration date of the copy reference. This value is currently set to be far enough in the future so that expiration is effectively not an issue.

    Return Value

    An initialized instance.