OAFFeaturesObject

Objective-C

@interface OAFFeaturesObject : NSObject

Swift

class OAFFeaturesObject : NSObject

Features Object

  • Foreign members

    Declaration

    Objective-C

    @property (nonatomic, strong) NSMutableDictionary<NSString *, NSObject *> *foreignMembers;

    Swift

    var foreignMembers: NSMutableDictionary! { get set }
  • Initialize

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()

    Return Value

    new object

  • Initialize

    Declaration

    Objective-C

    - (instancetype)initWithTree:(NSDictionary *)tree;

    Swift

    init!(tree: [AnyHashable : Any]!)

    Parameters

    tree

    JSON tree

    Return Value

    new object

  • Convert to a JSON tree

    Declaration

    Objective-C

    - (NSMutableDictionary *)toTree;

    Swift

    func toTree() -> NSMutableDictionary!

    Return Value

    JSON tree

  • Set from a JSON tree

    Declaration

    Objective-C

    - (void)fromTree:(NSDictionary *)tree;

    Swift

    func fromTree(_ tree: [AnyHashable : Any]!)

    Parameters

    tree

    JSON tree

  • Get the JSON keys

    Declaration

    Objective-C

    - (NSOrderedSet<NSString *> *)keys;

    Swift

    func keys() -> NSOrderedSet!

    Return Value

    JSON keys