DBFILEPROPERTIESAddPropertiesArg

Objective-C

@interface DBFILEPROPERTIESAddPropertiesArg
    : NSObject <DBSerializable, NSCopying>

Swift

class DBFILEPROPERTIESAddPropertiesArg : NSObject, DBSerializable, NSCopying

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

  • A unique identifier for the file or folder.

    Declaration

    Objective-C

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

    Swift

    var path: String { get }
  • The property groups which are to be added to a Dropbox file. No two groups in the input should refer to the same template.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<DBFILEPROPERTIESPropertyGroup *> *_Nonnull propertyGroups;

    Swift

    var propertyGroups: [DBFILEPROPERTIESPropertyGroup] { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPath:(nonnull NSString *)path
                          propertyGroups:
                              (nonnull NSArray<DBFILEPROPERTIESPropertyGroup *> *)
                                  propertyGroups;

    Swift

    init(path: String, propertyGroups: [DBFILEPROPERTIESPropertyGroup])

    Parameters

    path

    A unique identifier for the file or folder.

    propertyGroups

    The property groups which are to be added to a Dropbox file. No two groups in the input should refer to the same template.

    Return Value

    An initialized instance.