DBFILESListRevisionsResult

@interface DBFILESListRevisionsResult : NSObject <DBSerializable, NSCopying>

The ListRevisionsResult struct.

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

  • If the file identified by the latest revision in the response is either deleted or moved.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSNumber *_Nonnull isDeleted;

    Swift

    var isDeleted: NSNumber { get }
  • The time of deletion if the file was deleted.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSDate *serverDeleted;

    Swift

    var serverDeleted: Date? { get }
  • The revisions for the file. Only revisions that are not deleted will show up here.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSArray<DBFILESFileMetadata *> *_Nonnull entries;

    Swift

    var entries: [DBFILESFileMetadata] { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithIsDeleted:(nonnull NSNumber *)isDeleted
              entries:(nonnull NSArray<DBFILESFileMetadata *> *)entries
        serverDeleted:(nullable NSDate *)serverDeleted;

    Swift

    init(isDeleted: NSNumber, entries: [DBFILESFileMetadata], serverDeleted: Date?)

    Parameters

    isDeleted

    If the file identified by the latest revision in the response is either deleted or moved.

    entries

    The revisions for the file. Only revisions that are not deleted will show up here.

    serverDeleted

    The time of deletion if the file was deleted.

    Return Value

    An initialized instance.

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

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithIsDeleted:(nonnull NSNumber *)isDeleted
              entries:(nonnull NSArray<DBFILESFileMetadata *> *)entries;

    Swift

    init(isDeleted: NSNumber, entries: [DBFILESFileMetadata])

    Parameters

    isDeleted

    If the file identified by the latest revision in the response is either deleted or moved.

    entries

    The revisions for the file. Only revisions that are not deleted will show up here.

    Return Value

    An initialized instance.