SRHubResult Class Reference
Inherits from | NSObject |
Declared in | SRHubResult.h |
Tasks
Properties
-
result
A generic result object received from the server
property -
error
An
propertyNSString
represnting an error received from the server -
state
An
propertyNSDictionary
represnting a server state object
Initializing an SRHubResult Object
-
– initWithDictionary:
Initializes a new
SRHubResult
from aNSDictionary
object deserialized from a JSON server response
Updating an SRHubResult Object
-
– updateWithDictionary:
Updates a new
SRHubResult
from aNSDictionary
object deserialized from a JSON server response
JSON Serialization
-
– proxyForJson
Conforms to SBJson (aka json-framework) allowing
SRHubResult
to be serialized to JSON
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