DBFILEREQUESTSFileRequestDeadline

Objective-C

@interface DBFILEREQUESTSFileRequestDeadline
    : NSObject <DBSerializable, NSCopying>

Swift

class DBFILEREQUESTSFileRequestDeadline : NSObject, DBSerializable, NSCopying

The FileRequestDeadline 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

  • The deadline for this file request.

    Declaration

    Objective-C

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

    Swift

    var deadline: Date { get }
  • If set, allow uploads after the deadline has passed. These uploads will be marked overdue.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) DBFILEREQUESTSGracePeriod *allowLateUploads;

    Swift

    var allowLateUploads: DBFILEREQUESTSGracePeriod? { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDeadline:(nonnull NSDate *)deadline
                            allowLateUploads:(nullable DBFILEREQUESTSGracePeriod *)
                                                 allowLateUploads;

    Swift

    init(deadline: Date, allowLateUploads: DBFILEREQUESTSGracePeriod?)

    Parameters

    deadline

    The deadline for this file request.

    allowLateUploads

    If set, allow uploads after the deadline has passed. These uploads will be marked overdue.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDeadline:(nonnull NSDate *)deadline;

    Swift

    init(deadline: Date)

    Parameters

    deadline

    The deadline for this file request.

    Return Value

    An initialized instance.