Inherits from NSObject
Declared in SRHubServerInvocation.h

Overview

An SRHubServerInvocation object defines the interface for invoking methods on the SignalR Server Hub

Tasks

Properties

  •   hub

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

    property
  •   action

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

    property
  •   data

    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 SRHubServerInvocation Object

Updating an SRHubServerInvocation Object

JSON Serialization

Properties

action

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

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

Declared In

SRHubServerInvocation.h

data

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

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

Declared In

SRHubServerInvocation.h

hub

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

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

Declared In

SRHubServerInvocation.h

state

The NSMutableDictionary object corresponding to the client state

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

Declared In

SRHubServerInvocation.h

Instance Methods

initWithDictionary:

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

- (id)initWithDictionary:(NSDictionary *)dict

Parameters

dict

a dictionary representing an SRHubServerInvocation

Declared In

SRHubServerInvocation.h

proxyForJson

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

- (id)proxyForJson

Declared In

SRHubServerInvocation.h

updateWithDictionary:

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

- (void)updateWithDictionary:(NSDictionary *)dict

Parameters

dict

a dictionary representing an SRHubServerInvocation

Declared In

SRHubServerInvocation.h