TNReplaceVehiclePeripheralResponse
@objcMembers
public class TNReplaceVehiclePeripheralResponse : TNDriveMotionResponseBase
Represents the response to a replace vehicle peripheral request.
-
Indicates whether the replacement operation was successful.
Declaration
Swift
public let success: Bool -
Initializes a response with the given status, message, and success flag.
Declaration
Swift
public init(status: TNResponseStatus, message: String? = nil, success: Bool)Parameters
statusThe response status.
messageAn optional message providing additional details.
successA boolean indicating if the operation was successful.
-
Decodes the response from the given decoder.
Throws
An error if decoding fails.Declaration
Swift
public required init(from decoder: Decoder) throwsParameters
decoderThe decoder to read data from.
-
Encodes the response into the given encoder.
Throws
An error if encoding fails.Declaration
Swift
public override func encode(to encoder: Encoder) throwsParameters
encoderThe encoder to write data to.