Inherits from NSObject
Declared in SRHubResult.h

Overview

An SRHubResult object represents a SignalR Server Hub Response

Tasks

Properties

Initializing an SRHubResult Object

Updating an SRHubResult Object

JSON Serialization

Properties

error

An NSString represnting an error received from the server

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

Declared In

SRHubResult.h

result

A generic result object received from the server

@property (strong, nonatomic, readwrite) id result

Declared In

SRHubResult.h

state

An NSDictionary represnting a server state object

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

Declared In

SRHubResult.h

Instance Methods

initWithDictionary:

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

- (id)initWithDictionary:(NSDictionary *)dict

Parameters

dict

a dictionary representing an SRHubResult

Declared In

SRHubResult.h

proxyForJson

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

- (id)proxyForJson

Declared In

SRHubResult.h

updateWithDictionary:

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

- (void)updateWithDictionary:(NSDictionary *)dict

Parameters

dict

a dictionary representing an SRHubResult

Declared In

SRHubResult.h