DBFILESPathToTags

Objective-C

@interface DBFILESPathToTags : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESPathToTags : NSObject, DBSerializable, NSCopying

The PathToTags 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 of the item.

    Declaration

    Objective-C

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

    Swift

    var path: String { get }
  • Tags assigned to this item.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<DBFILESTag *> *_Nonnull tags;

    Swift

    var tags: [DBFILESTag] { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPath:(nonnull NSString *)path
                                    tags:(nonnull NSArray<DBFILESTag *> *)tags;

    Swift

    init(path: String, tags: [DBFILESTag])

    Parameters

    path

    Path of the item.

    tags

    Tags assigned to this item.

    Return Value

    An initialized instance.