Inherits from NSObject
Declared in SRNegotiationResponse.h

Overview

An SRNegotiationResponse object provides access to the negotiation response object received from the server

Tasks

Properties

  •   connectionId

    An NSString object representing the connectionId belonging to the current client

    property
  •   url

    An NSString object representing the app relative server url the client should use for all subsequent requests

    property
  •   protocolVersion

    An NSString object representing the protocol version the server is using.

    property

Initializing an SRNegotiationResponse Object

Updating an SRNegotiationResponse Object

JSON Serialization

Properties

connectionId

An NSString object representing the connectionId belonging to the current client

@property (strong, nonatomic, readonly) NSString *connectionId

Declared In

SRNegotiationResponse.h

protocolVersion

An NSString object representing the protocol version the server is using.

@property (strong, nonatomic, readonly) NSString *protocolVersion

Declared In

SRNegotiationResponse.h

url

An NSString object representing the app relative server url the client should use for all subsequent requests

@property (strong, nonatomic, readonly) NSString *url

Declared In

SRNegotiationResponse.h

Instance Methods

initWithDictionary:

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

- (id)initWithDictionary:(NSDictionary *)dict

Parameters

dict

a dictionary representing an SRNegotiationResponse

Declared In

SRNegotiationResponse.h

proxyForJson

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

- (id)proxyForJson

Declared In

SRNegotiationResponse.h

updateWithDictionary:

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

- (void)updateWithDictionary:(NSDictionary *)dict

Parameters

dict

a dictionary representing an SRNegotiationResponse

Declared In

SRNegotiationResponse.h