Parent class of all RPC messages.
Contains basic information about an RPC message.
Convenience init
- (nonnull instancetype)initWithName:(nonnull NSString *)name;
init(name: String)
The name of the message
A SDLRPCMessage object
Sets the function name.
- (void)setFunctionName:(nullable NSString *)functionName;
func setFunctionName(_ functionName: String?)
The function name
Sets a key-value pair using the function name as the key.
- (void)setParameters:(nonnull NSString *)functionName
value:(nullable NSObject *)value;
func setParameters(_ functionName: String, value: NSObject?)
The name for the key
The value associated with the function name
The data in the message
@property (nonatomic, strong, nullable) NSData *bulkData;
var bulkData: Data? { get set }
The name of the message
@property (nonatomic, strong, readonly) NSString *_Nonnull name;
var name: String { get }
The JSON-RPC parameters
@property (nonatomic, strong, readonly) NSMutableDictionary<NSString *, id> *_Nonnull parameters;
var parameters: NSMutableDictionary { get }
The type of data in the message
@property (nonatomic, strong, readonly) NSString *_Nonnull messageType;
var messageType: String { get }