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

    status

    The response status.

    message

    An optional message providing additional details.

    success

    A 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) throws

    Parameters

    decoder

    The 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) throws

    Parameters

    encoder

    The encoder to write data to.