com.ecwid.apiclient.v3.impl.ApplicationStorageApiClientImpl.kt Maven / Gradle / Ivy
The newest version!
package com.ecwid.apiclient.v3.impl
import com.ecwid.apiclient.v3.ApiClientHelper
import com.ecwid.apiclient.v3.ApplicationStorageApiClient
import com.ecwid.apiclient.v3.dto.storage.request.*
import com.ecwid.apiclient.v3.dto.storage.result.*
internal class ApplicationStorageApiClientImpl(
private val apiClientHelper: ApiClientHelper,
) : ApplicationStorageApiClient {
override fun getStorageData(request: StorageDataRequest) =
apiClientHelper.makeObjectResultRequest(request)
override fun getAllStorageData(request: AllStorageDataRequest) =
apiClientHelper.makeObjectResultRequest(request)
override fun createStorageData(request: StorageDataCreateRequest) =
apiClientHelper.makeObjectResultRequest(request)
override fun updateStorageData(request: StorageDataUpdateRequest) =
apiClientHelper.makeObjectResultRequest(request)
override fun deleteStorageData(request: StorageDataDeleteRequest) =
apiClientHelper.makeObjectResultRequest(request)
}