OYMValues Class Reference
Inherits from | NSObject |
---|---|
Conforms to | OYMJsonProtocol |
Declared in | OYMValues.h OYMValues.m |
Overview
This class handles the values stored in the server. It also includes serializer and deserializer methods.
– initWithJson:
Initialize OYMValues object to convert JSON String in dictionaries of usable objects
- (instancetype)initWithJson:(NSString *)json
Parameters
json |
JSON string |
---|
Return Value
OYMValues object
Declared In
OYMValues.h
– initWithUserValueDictionary:
Initialize OYMValues object to serialize objects in JSON String
- (instancetype)initWithUserValueDictionary:(NSDictionary *)dictionary
Parameters
dictionary |
Containing objects of OYMUserValue |
---|
Return Value
OYMValues object
Declared In
OYMValues.h
– initWithNotificationTargetsDictionary:
Initialize OYMValues object to serialize objects in JSON String
- (instancetype)initWithNotificationTargetsDictionary:(NSDictionary *)dictionary
Parameters
dictionary |
Containing objects of OYMNotificationTargets |
---|
Return Value
OYMValues object
Declared In
OYMValues.h
– toJson
Get JSON serialized from dictionary conatining objects of OYMUserValue/OYMNotificationTargets
- (NSString *)toJson
Return Value
JSON string
Declared In
OYMValues.h
– deserializeUserValue
Get NSDictionary of OYMUserValue
- (NSDictionary *)deserializeUserValue
Return Value
Dictionary
Declared In
OYMValues.h
– deserializeNotificationTargets
Get NSDictionary of OYMNotificationTargets
- (NSDictionary *)deserializeNotificationTargets
Return Value
Dictionary
Declared In
OYMValues.h