SDLRPCResponse Class Reference

Section Contents

Overview

Superclass of RPC responses

correlationID

The correlation id of the corresponding SDLRPCRequest.

Objective-C

@property (nonatomic, strong) NSNumber<SDLInt> *_Nonnull correlationID;

Swift

var correlationID: NSNumber & SDLInt { get set }

success

Whether or not the SDLRPCRequest was successful.

Objective-C

@property (nonatomic, strong) NSNumber<SDLBool> *_Nonnull success;

Swift

var success: NSNumber & SDLBool { get set }

resultCode

The result of the SDLRPCRequest. If the request failed, the result code contains the failure reason.

Objective-C

@property (nonatomic, strong) SDLResult _Nonnull resultCode;

Swift

var resultCode: SDLResult { get set }

info

More detailed success or error message.

Objective-C

@property (nonatomic, strong, nullable) NSString *info;

Swift

var info: String? { get set }