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