com.ecwid.apiclient.v3.impl.ApplicationApiClientImpl.kt Maven / Gradle / Ivy
The newest version!
package com.ecwid.apiclient.v3.impl
import com.ecwid.apiclient.v3.ApiClientHelper
import com.ecwid.apiclient.v3.ApplicationApiClient
import com.ecwid.apiclient.v3.dto.application.request.ApplicationDeleteRequest
import com.ecwid.apiclient.v3.dto.application.request.ApplicationTokenRequest
import com.ecwid.apiclient.v3.dto.application.result.ApplicationDeleteResult
import com.ecwid.apiclient.v3.dto.application.result.ApplicationTokenResult
class ApplicationApiClientImpl(
private val apiClientHelper: ApiClientHelper
) : ApplicationApiClient {
override fun deleteApplication(request: ApplicationDeleteRequest) =
apiClientHelper.makeObjectResultRequest(request)
override fun getApplicationToken(request: ApplicationTokenRequest) =
apiClientHelper.makeObjectResultRequest(request)
}