package com.isidroid.job_sender.domain.dto

import com.isidroid.job.constant.JobStatus

sealed interface JobSenderResult {
    data class RenderProgress(val jobId: String, val position: Int, val total: Int) : JobSenderResult
    data class UploadProgress(val jobId: String?, val position: Int, val total: Int) : JobSenderResult
    data class Error(val jobId: String, val t: Throwable) : JobSenderResult
    data class Statuses(@JobStatus val status: Int, val jobIds: Collection<String?>) : JobSenderResult
}