DBFILESAddTagArg

Objective-C

@interface DBFILESAddTagArg : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESAddTagArg : NSObject, DBSerializable, NSCopying

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

  • Path to the item to be tagged.

    Declaration

    Objective-C

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

    Swift

    var path: String { get }
  • The value of the tag to add. Will be automatically converted to lowercase letters.

    Declaration

    Objective-C

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

    Swift

    var tagText: String { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPath:(nonnull NSString *)path
                                 tagText:(nonnull NSString *)tagText;

    Swift

    init(path: String, tagText: String)

    Parameters

    path

    Path to the item to be tagged.

    tagText

    The value of the tag to add. Will be automatically converted to lowercase letters.

    Return Value

    An initialized instance.