SRHubServerInvocation Class Reference
| Inherits from | NSObject |
| Declared in | SRHubServerInvocation.h |
Overview
An SRHubServerInvocation object defines the interface for invoking methods on the SignalR Server Hub
Tasks
Properties
-
hubThe
propertyNSStringobject corresponding to the hub to preform an invocation on -
actionThe
propertyNSStringobject corresponding to the method to invoke on the hub -
dataThe
propertyNSMutableArrayobject corresponding to the arguments to be passed as part of the invocation -
stateThe
propertyNSMutableDictionaryobject corresponding to the client state
Initializing an SRHubServerInvocation Object
-
– initWithDictionary:Initializes a new
SRHubServerInvocationfrom aNSDictionaryobject deserialized from a JSON server response
Updating an SRHubServerInvocation Object
-
– updateWithDictionary:Updates a new
SRHubServerInvocationfrom aNSDictionaryobject deserialized from a JSON server response
JSON Serialization
-
– proxyForJsonConforms to SBJson (aka json-framework) allowing
SRHubServerInvocationto be serialized to JSON
Properties
action
The NSString object corresponding to the method to invoke on the hub
@property (strong, nonatomic, readwrite) NSString *actionDeclared In
SRHubServerInvocation.hdata
The NSMutableArray object corresponding to the arguments to be passed as part of the invocation
@property (strong, nonatomic, readwrite) NSMutableArray *dataDeclared In
SRHubServerInvocation.hhub
The NSString object corresponding to the hub to preform an invocation on
@property (strong, nonatomic, readwrite) NSString *hubDeclared In
SRHubServerInvocation.hstate
The NSMutableDictionary object corresponding to the client state
@property (strong, nonatomic, readwrite) NSMutableDictionary *stateDeclared In
SRHubServerInvocation.hInstance Methods
initWithDictionary:
Initializes a new SRHubServerInvocation from a NSDictionary object deserialized from a JSON server response
- (id)initWithDictionary:(NSDictionary *)dictParameters
- dict
a dictionary representing an
SRHubServerInvocation
Declared In
SRHubServerInvocation.hproxyForJson
Conforms to SBJson (aka json-framework) allowing SRHubServerInvocation to be serialized to JSON
- (id)proxyForJsonDeclared In
SRHubServerInvocation.hupdateWithDictionary:
Updates a new SRHubServerInvocation from a NSDictionary object deserialized from a JSON server response
- (void)updateWithDictionary:(NSDictionary *)dictParameters
- dict
a dictionary representing an
SRHubServerInvocation
Declared In
SRHubServerInvocation.h