NBMRequest Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NBMMessage |
Declared in | NBMRequest.h |
requestId
The request identifier which is echoed back to the client with the response.
@property (nonatomic, readonly) NSNumber *requestId
Declared In
NBMRequest.h
method
The name of the requested method.
@property (nonatomic, copy, readonly) NSString *method
Declared In
NBMRequest.h
parameters
The parameters encoded into the request, these are an NSDictionary
or `NSArray.
@property (nonatomic, readonly) id parameters
Declared In
NBMRequest.h
+ requestWithMethod:
Creates and initializes a JSON-RPC 2.0 request with the specified method
+ (instancetype)requestWithMethod:(NSString *)method
Parameters
method |
The name of the requested method. Must not be |
---|
Return Value
An initialized JSON-RPC request.
Declared In
NBMRequest.h
+ requestWithMethod:parameters:
Creates and initializes a JSON-RPC 2.0 request with the specified method and parameters (named or positional).
+ (instancetype)requestWithMethod:(NSString *)method parameters:(id)parameters
Parameters
method |
The name of the requested method. Must not be |
---|---|
parameters |
The parameters to encode into the request. Must be either an |
Return Value
An initialized JSON-RPC request.
Declared In
NBMRequest.h