DBFILESFileSharingInfo

Objective-C

@interface DBFILESFileSharingInfo
    : DBFILESSharingInfo <DBSerializable, NSCopying>

Swift

class DBFILESFileSharingInfo : DBFILESSharingInfo, DBSerializable, NSCopying

The FileSharingInfo struct.

Sharing info for a file which is contained by a shared folder.

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

Instance fields

  • ID of shared folder that holds this file.

    Declaration

    Objective-C

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

    Swift

    var parentSharedFolderId: String { get }
  • The last user who modified the file. This field will be null if the user’s account has been deleted.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *modifiedBy;

    Swift

    var modifiedBy: String? { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithReadOnly:(nonnull NSNumber *)readOnly
                        parentSharedFolderId:
                            (nonnull NSString *)parentSharedFolderId
                                  modifiedBy:(nullable NSString *)modifiedBy;

    Swift

    init(readOnly: NSNumber, parentSharedFolderId: String, modifiedBy: String?)

    Parameters

    readOnly

    True if the file or folder is inside a read-only shared folder.

    parentSharedFolderId

    ID of shared folder that holds this file.

    modifiedBy

    The last user who modified the file. This field will be null if the user’s account has been deleted.

    Return Value

    An initialized instance.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithReadOnly:(nonnull NSNumber *)readOnly
                        parentSharedFolderId:
                            (nonnull NSString *)parentSharedFolderId;

    Swift

    init(readOnly: NSNumber, parentSharedFolderId: String)

    Parameters

    readOnly

    True if the file or folder is inside a read-only shared folder.

    parentSharedFolderId

    ID of shared folder that holds this file.

    Return Value

    An initialized instance.