FMWebSyncSubscription Class Reference

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

Overview

A channel/tag identifier for a client subscription.

– channel

Gets the subscription channel.

- (NSString *)channel

Discussion

Gets the subscription channel.

Declared In

FMWebSync.h

– duplicate

Creates a deep clone of this subscription. A deep clone of this subscription.

- (FMWebSyncSubscription *)duplicate

Discussion

Creates a deep clone of this subscription. A deep clone of this subscription.

Declared In

FMWebSync.h

+ fromJsonMultipleWithSubscriptionsJson:

Deserializes a list of subscriptions from JSON.

+ (NSMutableArray *)fromJsonMultipleWithSubscriptionsJson:(NSString *)subscriptionsJson

Parameters

name="subscriptionsJson">A

JSON string to deserialize. A deserialized list of subscriptions.

Discussion

Deserializes a list of subscriptions from JSON.

Declared In

FMWebSync.h

+ fromJsonWithSubscriptionJson:

Deserializes a subscription from JSON.

+ (FMWebSyncSubscription *)fromJsonWithSubscriptionJson:(NSString *)subscriptionJson

Parameters

name="subscriptionJson">A

JSON string to deserialize. A deserialized subscription.

Discussion

Deserializes a subscription from JSON.

Declared In

FMWebSync.h

– hash

Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

- (int)hash

Discussion

Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Declared In

FMWebSync.h

– initWithChannel:

Initializes a new instance of the class.

- (id)initWithChannel:(NSString *)channel

Parameters

name="channel">The

subscription channel.

Discussion

Initializes a new instance of the class.

Declared In

FMWebSync.h

– initWithChannel:tag:

Initializes a new instance of the class.

- (id)initWithChannel:(NSString *)channel tag:(NSString *)tag

Parameters

name="channel">The

subscription channel.

name="tag">The

identifier for the subscription.

Discussion

Initializes a new instance of the class.

Declared In

FMWebSync.h

– isEqualWithObj:

Determines whether the specified is equal to this instance.

- (bool)isEqualWithObj:(NSObject *)obj

Parameters

name="obj">The

to compare with this instance. true if the specified is equal to this instance; otherwise, false.

Discussion

Determines whether the specified is equal to this instance.

Declared In

FMWebSync.h

– setChannel:

Sets the subscription channel.

- (void)setChannel:(NSString *)value

Discussion

Sets the subscription channel.

Declared In

FMWebSync.h

– setTag:

Sets the identifier for the subscription.

- (void)setTag:(NSString *)value

Discussion

Sets the identifier for the subscription.

Declared In

FMWebSync.h

+ subscriptionWithChannel:

Initializes a new instance of the class.

+ (FMWebSyncSubscription *)subscriptionWithChannel:(NSString *)channel

Parameters

name="channel">The

subscription channel.

Discussion

Initializes a new instance of the class.

Declared In

FMWebSync.h

+ subscriptionWithChannel:tag:

Initializes a new instance of the class.

+ (FMWebSyncSubscription *)subscriptionWithChannel:(NSString *)channel tag:(NSString *)tag

Parameters

name="channel">The

subscription channel.

name="tag">The

identifier for the subscription.

Discussion

Initializes a new instance of the class.

Declared In

FMWebSync.h

– tag

Gets the identifier for the subscription.

- (NSString *)tag

Discussion

Gets the identifier for the subscription.

Declared In

FMWebSync.h

– toJson

Serializes the record to JSON. The record in JSON-serialized format.

- (NSString *)toJson

Discussion

Serializes the record to JSON. The record in JSON-serialized format.

Declared In

FMWebSync.h

+ toJsonMultipleWithSubscriptions:

Serializes a list of subscriptions to JSON.

+ (NSString *)toJsonMultipleWithSubscriptions:(NSMutableArray *)subscriptions

Parameters

name="subscriptions">A

list of subscriptions to serialize. A JSON-serialized array of subscriptions.

Discussion

Serializes a list of subscriptions to JSON.

Declared In

FMWebSync.h

+ toJsonWithSubscription:

Serializes a subscription to JSON.

+ (NSString *)toJsonWithSubscription:(FMWebSyncSubscription *)subscription

Parameters

name="subscription">A

subscription to serialize. A JSON-serialized subscription.

Discussion

Serializes a subscription to JSON.

Declared In

FMWebSync.h