FMWebSyncAdvice Class Reference

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

Overview

Advice class used in Messages.

– callbackPolling

Gets advice specific to callback-polling clients.

- (FMWebSyncBaseAdvice *)callbackPolling

Discussion

Gets advice specific to callback-polling clients.

Declared In

FMWebSync.h

+ fromJsonWithAdviceJson:

Deserializes a single advice object from JSON.

+ (FMWebSyncAdvice *)fromJsonWithAdviceJson:(NSString *)adviceJson

Parameters

name="adviceJson">The

JSON advice object to deserialize. The deserialized advice object.

Discussion

Deserializes a single advice object from JSON.

Declared In

FMWebSync.h

– init

- (id)init

Declared In

FM.h

– longPolling

Gets advice specific to long-polling clients.

- (FMWebSyncBaseAdvice *)longPolling

Discussion

Gets advice specific to long-polling clients.

Declared In

FMWebSync.h

– setCallbackPolling:

Sets advice specific to callback-polling clients.

- (void)setCallbackPolling:(FMWebSyncBaseAdvice *)value

Discussion

Sets advice specific to callback-polling clients.

Declared In

FMWebSync.h

– setLongPolling:

Sets advice specific to long-polling clients.

- (void)setLongPolling:(FMWebSyncBaseAdvice *)value

Discussion

Sets advice specific to long-polling clients.

Declared In

FMWebSync.h

– setWebSocket:

Sets advice specific to WebSocket clients.

- (void)setWebSocket:(FMWebSyncBaseAdvice *)value

Discussion

Sets advice specific to WebSocket clients.

Declared In

FMWebSync.h

– toJson

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

- (NSString *)toJson

Discussion

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

Declared In

FMWebSync.h

+ toJsonWithAdvice:

Serializes a single advice object to JSON.

+ (NSString *)toJsonWithAdvice:(FMWebSyncAdvice *)advice

Parameters

name="advice">The

advice object to serialize. The serialized advice object.

Discussion

Serializes a single advice object to JSON.

Declared In

FMWebSync.h

– webSocket

Gets advice specific to WebSocket clients.

- (FMWebSyncBaseAdvice *)webSocket

Discussion

Gets advice specific to WebSocket clients.

Declared In

FMWebSync.h