DBFILEREQUESTSFileRequestDeadline

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

  • The deadline for this file request.

    Declaration

    Objective-C

    @property (readonly, nonatomic) 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 (readonly, nonatomic, nullable)
        DBFILEREQUESTSGracePeriod *allowLateUploads;

    Swift

    var allowLateUploads: DBFILEREQUESTSGracePeriod? { get }
  • 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.