VGSResponse

sealed class VGSResponse

The base class for VGS Collect responses.

Parameters

code

The HTTP response code.

body

The raw response body as a string.

Inheritors

Types

Link copied to clipboard
data class ErrorResponse(val localizeMessage: String = "Can't connect to server", val errorCode: Int = -1, rawResponse: String? = null) : VGSResponse

An error response from the VGS server.

Link copied to clipboard
data class SuccessResponse(val response: Map<String, Any>? = null, val successCode: Int = -1, val rawResponse: String? = null) : VGSResponse

A successful response from the VGS server.

Properties

Link copied to clipboard
val body: String?
Link copied to clipboard
val code: Int