DBFILESGetCopyReferenceResult

@interface 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.

  • Metadata of the file or folder.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) 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 (readonly, nonatomic) NSDate *_Nonnull expires;

    Swift

    var expires: Date { get }
  • 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.