Inherits from NSObject
Declared in SRHubClientInvocation.h

Overview

An SRHubClientInvocation object defines the interface for invoking methods on the SignalR Client using a Hubs implementation

Tasks

Properties

  •   hub

    The NSString object corresponding to the hub to preform an invocation on

    property
  •   method

    The NSString object corresponding to the method to invoke on the hub

    property
  •   args

    The NSMutableArray object corresponding to the arguments to be passed as part of the invocation

    property
  •   state

    The NSMutableDictionary object corresponding to the client state

    property

Initializing an SRHubClientInvocation Object

Updating an SRHubClientInvocation Object

JSON Serialization

Properties

args

The NSMutableArray object corresponding to the arguments to be passed as part of the invocation

@property (strong, nonatomic, readwrite) NSMutableArray *args

Declared In

SRHubClientInvocation.h

hub

The NSString object corresponding to the hub to preform an invocation on

@property (strong, nonatomic, readwrite) NSString *hub

Declared In

SRHubClientInvocation.h

method

The NSString object corresponding to the method to invoke on the hub

@property (strong, nonatomic, readwrite) NSString *method

Declared In

SRHubClientInvocation.h

state

The NSMutableDictionary object corresponding to the client state

@property (strong, nonatomic, readwrite) NSMutableDictionary *state

Declared In

SRHubClientInvocation.h

Instance Methods

initWithDictionary:

Initializes a new SRHubClientInvocation from a NSDictionary object deserialized from a JSON server response

- (id)initWithDictionary:(NSDictionary *)dict

Parameters

dict

a dictionary representing an SRHubClientInvocation

Declared In

SRHubClientInvocation.h

proxyForJson

Conforms to SBJson (aka json-framework) allowing SRHubClientInvocation to be serialized to JSON

- (id)proxyForJson

Declared In

SRHubClientInvocation.h

updateWithDictionary:

Updates a new SRHubClientInvocation from a NSDictionary object deserialized from a JSON server response

- (void)updateWithDictionary:(NSDictionary *)dict

Parameters

dict

a dictionary representing an SRHubClientInvocation

Declared In

SRHubClientInvocation.h