package com.fastest.pass.home.domain.usecase

import com.fastest.pass.app.BaseUseCase
import com.fastest.pass.app.WebResponse
import com.fastest.pass.home.data.model.NewItemFormRequest
import com.fastest.pass.home.data.model.NewItemFormResponse
import com.fastest.pass.home.domain.repository.NewItemFormRepository
import javax.inject.Inject

class NewItemFormUseCase @Inject constructor(
    private val newItemFormRepository: NewItemFormRepository
) : BaseUseCase<Pair<String, NewItemFormRequest>, WebResponse<NewItemFormResponse>>() {
    override suspend fun execute(params: Pair<String, NewItemFormRequest>): WebResponse<NewItemFormResponse> {
        return newItemFormRepository.newItemFormRepository(params.first, params.second)
    }
}