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