SRHubResult Class Reference
| Inherits from | NSObject |
| Declared in | SRHubResult.h |
Tasks
Properties
-
resultA generic result object received from the server
property -
errorAn
propertyNSStringrepresnting an error received from the server -
stateAn
propertyNSDictionaryrepresnting a server state object
Initializing an SRHubResult Object
-
– initWithDictionary:Initializes a new
SRHubResultfrom aNSDictionaryobject deserialized from a JSON server response
Updating an SRHubResult Object
-
– updateWithDictionary:Updates a new
SRHubResultfrom aNSDictionaryobject deserialized from a JSON server response
JSON Serialization
-
– proxyForJsonConforms to SBJson (aka json-framework) allowing
SRHubResultto be serialized to JSON
Properties
error
An NSString represnting an error received from the server
@property (strong, nonatomic, readwrite) NSString *errorDeclared In
SRHubResult.hresult
A generic result object received from the server
@property (strong, nonatomic, readwrite) id resultDeclared In
SRHubResult.hstate
An NSDictionary represnting a server state object
@property (strong, nonatomic, readwrite) NSDictionary *stateDeclared In
SRHubResult.hInstance Methods
initWithDictionary:
Initializes a new SRHubResult from a NSDictionary object deserialized from a JSON server response
- (id)initWithDictionary:(NSDictionary *)dictParameters
- dict
a dictionary representing an
SRHubResult
Declared In
SRHubResult.hproxyForJson
Conforms to SBJson (aka json-framework) allowing SRHubResult to be serialized to JSON
- (id)proxyForJsonDeclared In
SRHubResult.hupdateWithDictionary:
Updates a new SRHubResult from a NSDictionary object deserialized from a JSON server response
- (void)updateWithDictionary:(NSDictionary *)dictParameters
- dict
a dictionary representing an
SRHubResult
Declared In
SRHubResult.h