package com.isidroid.job.constant

@Retention(AnnotationRetention.SOURCE)
annotation class SendJobStatus {
    companion object {
        const val RENDERED = 0
        const val SENDING = 1
        const val COMPLETE = 2
    }
}

@JobStatus
val Int.sendJobStatusName
    get() = when (this) {
        SendJobStatus.RENDERED -> "RENDERED"
        SendJobStatus.SENDING -> "SENDING"
        SendJobStatus.COMPLETE -> "COMPLETE"
        else -> "Unknown"
    }