DBTEAMLegalHoldHeldRevisionMetadata

Objective-C

@interface DBTEAMLegalHoldHeldRevisionMetadata
    : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMLegalHoldHeldRevisionMetadata : NSObject, DBSerializable, NSCopying

The LegalHoldHeldRevisionMetadata 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 held revision filename.

    Declaration

    Objective-C

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

    Swift

    var dNewFilename: String { get }
  • The id of the held revision.

    Declaration

    Objective-C

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

    Swift

    var originalRevisionId: String { get }
  • The original path of the held revision.

    Declaration

    Objective-C

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

    Swift

    var originalFilePath: String { get }
  • The last time the file was modified on Dropbox.

    Declaration

    Objective-C

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

    Swift

    var serverModified: Date { get }
  • The member id of the revision’s author.

    Declaration

    Objective-C

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

    Swift

    var authorMemberId: String { get }
  • The member status of the revision’s author.

    Declaration

    Objective-C

    @property (nonatomic, readonly) DBTEAMTeamMemberStatus *_Nonnull authorMemberStatus;

    Swift

    var authorMemberStatus: DBTEAMTeamMemberStatus { get }
  • The email address of the held revision author.

    Declaration

    Objective-C

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

    Swift

    var authorEmail: String { get }
  • The type of the held revision’s file.

    Declaration

    Objective-C

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

    Swift

    var fileType: String { get }
  • The file size in bytes.

    Declaration

    Objective-C

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

    Swift

    var size: NSNumber { get }
  • A hash of the file content. This field can be used to verify data integrity. For more information see our Content hash https://www.dropbox.com/developers/reference/content-hash page.

    Declaration

    Objective-C

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

    Swift

    var contentHash: String { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithDNewFilename:(nonnull NSString *)dNewFilename
          originalRevisionId:(nonnull NSString *)originalRevisionId
            originalFilePath:(nonnull NSString *)originalFilePath
              serverModified:(nonnull NSDate *)serverModified
              authorMemberId:(nonnull NSString *)authorMemberId
          authorMemberStatus:(nonnull DBTEAMTeamMemberStatus *)authorMemberStatus
                 authorEmail:(nonnull NSString *)authorEmail
                    fileType:(nonnull NSString *)fileType
                        size:(nonnull NSNumber *)size
                 contentHash:(nonnull NSString *)contentHash;

    Swift

    init(dNewFilename: String, originalRevisionId: String, originalFilePath: String, serverModified: Date, authorMemberId: String, authorMemberStatus: DBTEAMTeamMemberStatus, authorEmail: String, fileType: String, size: NSNumber, contentHash: String)

    Parameters

    dNewFilename

    The held revision filename.

    originalRevisionId

    The id of the held revision.

    originalFilePath

    The original path of the held revision.

    serverModified

    The last time the file was modified on Dropbox.

    authorMemberId

    The member id of the revision’s author.

    authorMemberStatus

    The member status of the revision’s author.

    authorEmail

    The email address of the held revision author.

    fileType

    The type of the held revision’s file.

    size

    The file size in bytes.

    contentHash

    A hash of the file content. This field can be used to verify data integrity. For more information see our Content hash https://www.dropbox.com/developers/reference/content-hash page.

    Return Value

    An initialized instance.