SRNegotiationResponse Class Reference
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
propertyNSString
object representing the connectionId belonging to the current client -
url
An
propertyNSString
object representing the app relative server url the client should use for all subsequent requests -
protocolVersion
An
propertyNSString
object representing the protocol version the server is using.
Initializing an SRNegotiationResponse Object
-
– initWithDictionary:
Initializes a new
SRNegotiationResponse
from aNSDictionary
object deserialized from a JSON server response
Updating an SRNegotiationResponse Object
-
– updateWithDictionary:
Updates a new
SRNegotiationResponse
from aNSDictionary
object deserialized from a JSON server response
JSON Serialization
-
– proxyForJson
Conforms to SBJson (aka json-framework) allowing
SRNegotiationResponse
to be serialized to JSON
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