com.codacy.client.bitbucket.v2.BuildStatus.scala Maven / Gradle / Ivy
package com.codacy.client.bitbucket.v2
import com.codacy.client.bitbucket.util.JsonEnumeration
import play.api.libs.json.Json
object CommitStatus extends JsonEnumeration {
val InProgress = Value("INPROGRESS")
val Successful = Value("SUCCESSFUL")
val Failed = Value("FAILED")
}
case class BuildStatus(state: CommitStatus.Value, key: String, name: String, url: String, description: String)
object BuildStatus {
implicit val fmt = Json.format[BuildStatus]
}