FMWebSyncBaseAdvice Class Reference

Inherits from FMSerializable : NSObject
Declared in FMWebSync.h

Overview

Base advice class used in Messages and for nested advice.

+ fromJsonWithBaseAdviceJson:

Deserializes a single base advice object from JSON.

+ (FMWebSyncBaseAdvice *)fromJsonWithBaseAdviceJson:(NSString *)baseAdviceJson

Parameters

name="baseAdviceJson">The

JSON base advice object to deserialize. The deserialized advice object.

Discussion

Deserializes a single base advice object from JSON.

Declared In

FMWebSync.h

– hosts

Gets the list of host names that may be used as alternate servers.

- (NSMutableArray *)hosts

Discussion

Gets the list of host names that may be used as alternate servers.

Declared In

FMWebSync.h

– init

- (id)init

Declared In

FM.h

– interval

Gets the interval to wait before following the reconnect advice.

- (FMNullableInt *)interval

Discussion

Gets the interval to wait before following the reconnect advice.

Declared In

FMWebSync.h

– reconnect

Gets how the client should attempt to re-establish a connection with the server.

- (FMWebSyncNullableReconnect *)reconnect

Discussion

Gets how the client should attempt to re-establish a connection with the server.

Declared In

FMWebSync.h

– setHosts:

Sets the list of host names that may be used as alternate servers.

- (void)setHosts:(NSMutableArray *)value

Discussion

Sets the list of host names that may be used as alternate servers.

Declared In

FMWebSync.h

– setInterval:

Sets the interval to wait before following the reconnect advice.

- (void)setInterval:(FMNullableInt *)value

Discussion

Sets the interval to wait before following the reconnect advice.

Declared In

FMWebSync.h

– setReconnect:

Sets how the client should attempt to re-establish a connection with the server.

- (void)setReconnect:(FMWebSyncNullableReconnect *)value

Discussion

Sets how the client should attempt to re-establish a connection with the server.

Declared In

FMWebSync.h

– toJson

Serializes the base advice object to JSON. The serialized advice object.

- (NSString *)toJson

Discussion

Serializes the base advice object to JSON. The serialized advice object.

Declared In

FMWebSync.h

+ toJsonWithBaseAdvice:

Serializes a single base advice object to JSON.

+ (NSString *)toJsonWithBaseAdvice:(FMWebSyncBaseAdvice *)baseAdvice

Parameters

name="baseAdvice">The

base advice object to serialize. The serialized advice object.

Discussion

Serializes a single base advice object to JSON.

Declared In

FMWebSync.h