FMWebSyncExtensions Class Reference

Inherits from FMDynamic : FMSerializable : NSObject
Declared in FMWebSync.h

Overview

The extensions library that wraps the Bayeux Ext field, used with instances of classes that derive from .

– count

Gets the number of extensions in the library.

- (int)count

Discussion

Gets the number of extensions in the library.

Declared In

FMWebSync.h

+ extensions

Initializes a new instance of the class.

+ (FMWebSyncExtensions *)extensions

Discussion

Initializes a new instance of the class.

Declared In

FMWebSync.h

+ fromJsonWithExtensionsJson:

Deserializes a single extensions library from JSON.

+ (FMWebSyncExtensions *)fromJsonWithExtensionsJson:(NSString *)extensionsJson

Parameters

name="extensionsJson">The

JSON extensions library to deserialize. The deserialized extensions library.

Discussion

Deserializes a single extensions library from JSON.

Declared In

FMWebSync.h

– getValueJsonWithName:

Gets a serialized value stored in the extensions.

- (NSString *)getValueJsonWithName:(NSString *)name

Parameters

name="name">Fully-qualified

extension name. The extension value (in JSON format).

Discussion

Gets a serialized value stored in the extensions.

Declared In

FMWebSync.h

– init

Initializes a new instance of the class.

- (id)init

Discussion

Initializes a new instance of the class.

Declared In

FMWebSync.h

– names

Gets the names of the extensions in the library.

- (NSMutableArray *)names

Discussion

Gets the names of the extensions in the library.

Declared In

FMWebSync.h

– setValueJsonWithName:valueJson:

Stores a serialized value in the extensions. Must be valid JSON.

- (void)setValueJsonWithName:(NSString *)name valueJson:(NSString *)valueJson

Parameters

name="name">Fully-qualified

extension name.

name="valueJson">The

extension value in valid JSON format.

Discussion

Stores a serialized value in the extensions. Must be valid JSON.

Declared In

FMWebSync.h

– setValueJsonWithName:valueJson:validate:

Stores a serialized value in the extensions. Must be valid JSON.

- (void)setValueJsonWithName:(NSString *)name valueJson:(NSString *)valueJson validate:(bool)validate

Parameters

name="name">Fully-qualified

extension name.

name="valueJson">The

extension value in valid JSON format.

name="validate">Whether

or not to validate the JSON.

Discussion

Stores a serialized value in the extensions. Must be valid JSON.

Declared In

FMWebSync.h

– toJson

Serializes the extensions library to JSON. The serialized extensions library.

- (NSString *)toJson

Discussion

Serializes the extensions library to JSON. The serialized extensions library.

Declared In

FMWebSync.h

+ toJsonWithExtensions:

Serializes a single extensions library to JSON.

+ (NSString *)toJsonWithExtensions:(FMWebSyncExtensions *)extensions

Parameters

name="extensions">The

extensions library to serialize. The serialized extensions library.

Discussion

Serializes a single extensions library to JSON.

Declared In

FMWebSync.h