All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ecwid.apiclient.v3.dto.batch.result.GetEscapedBatchResult.kt Maven / Gradle / Ivy

There is a newer version: 0.347.0
Show newest version
package com.ecwid.apiclient.v3.dto.batch.result

import com.ecwid.apiclient.v3.dto.common.ApiResultDTO

data class GetEscapedBatchResult(
	val status: BatchStatus = BatchStatus.QUEUED,
	val totalRequests: Int = 0,
	val completedRequests: Int = 0,
	val responses: List? = null
) : ApiResultDTO

data class EscapedSingleBatchResponse(
	val id: String = "",
	val escapedHttpBody: String = "",
	val httpStatusCode: Int = 0,
	val httpStatusLine: String = "",
	val status: BatchResponseStatus = BatchResponseStatus.NOT_EXECUTED
) : ApiResultDTO

@Suppress("unused")
enum class BatchStatus {
	QUEUED,
	IN_PROGRESS,
	COMPLETED
}

enum class BatchResponseStatus {
	COMPLETED,
	FAILED,
	NOT_EXECUTED
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy