SDLRPCStruct Class Reference

Section Contents

Overview

Superclass of all RPC-related structs and messages

store

The store that contains RPC data

Objective-C

@property (nonatomic, strong, readonly) NSMutableDictionary<NSString *, id> *_Nonnull store;

Swift

var store: NSMutableDictionary { get }

payloadProtected

Declares if the RPC payload ought to be protected

Objective-C

@property (nonatomic, assign, unsafe_unretained, readwrite,
          getter=isPayloadProtected) BOOL payloadProtected;

Swift

var isPayloadProtected: Bool { get set }

-initWithDictionary:

Convenience init

Objective-C

- (nonnull instancetype)initWithDictionary:
    (nonnull NSDictionary<NSString *, id> *)dict;

Swift

init(dictionary dict: [String : Any])

Parameters

dict

A dictionary

Return Value

A SDLRPCStruct object

-serializeAsDictionary:

Converts struct to JSON formatted data

Objective-C

- (nonnull NSDictionary<NSString *, id> *)serializeAsDictionary:(Byte)version;

Swift

func serialize(asDictionary version: UInt8) -> [String : Any]

Parameters

version

The protocol version

Return Value

JSON formatted data