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
-
hub
The
propertyNSString
object corresponding to the hub to preform an invocation on -
method
The
propertyNSString
object corresponding to the method to invoke on the hub -
args
The
propertyNSMutableArray
object corresponding to the arguments to be passed as part of the invocation -
state
The
propertyNSMutableDictionary
object corresponding to the client state
Initializing an SRHubClientInvocation Object
-
– initWithDictionary:
Initializes a new
SRHubClientInvocation
from aNSDictionary
object deserialized from a JSON server response
Updating an SRHubClientInvocation Object
-
– updateWithDictionary:
Updates a new
SRHubClientInvocation
from aNSDictionary
object deserialized from a JSON server response
JSON Serialization
-
– proxyForJson
Conforms to SBJson (aka json-framework) allowing
SRHubClientInvocation
to 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 *args
Declared In
SRHubClientInvocation.h
hub
The NSString
object corresponding to the hub to preform an invocation on
@property (strong, nonatomic, readwrite) NSString *hub
Declared In
SRHubClientInvocation.h
method
@property (strong, nonatomic, readwrite) NSString *method
Declared In
SRHubClientInvocation.h
state
The NSMutableDictionary
object corresponding to the client state
@property (strong, nonatomic, readwrite) NSMutableDictionary *state
Declared In
SRHubClientInvocation.h
Instance Methods
initWithDictionary:
Initializes a new SRHubClientInvocation
from a NSDictionary
object deserialized from a JSON server response
- (id)initWithDictionary:(NSDictionary *)dict
Parameters
- dict
a dictionary representing an
SRHubClientInvocation
Declared In
SRHubClientInvocation.h
proxyForJson
Conforms to SBJson (aka json-framework) allowing SRHubClientInvocation
to be serialized to JSON
- (id)proxyForJson
Declared In
SRHubClientInvocation.h
updateWithDictionary:
Updates a new SRHubClientInvocation
from a NSDictionary
object deserialized from a JSON server response
- (void)updateWithDictionary:(NSDictionary *)dict
Parameters
- dict
a dictionary representing an
SRHubClientInvocation
Declared In
SRHubClientInvocation.h