diff --git a/src/main/scala/lc/core/models.scala b/src/main/scala/lc/core/models.scala index 2e6f48c..4c16333 100644 --- a/src/main/scala/lc/core/models.scala +++ b/src/main/scala/lc/core/models.scala @@ -1,7 +1,16 @@ package lc.core +sealed trait ChallengeResult case class Size(height: Int, width: Int) case class Parameters(level: String, media: String, input_type: String, size: Option[Size]) -case class Id(id: String) +case class Id(id: String) extends ChallengeResult +case class Error(message: String) extends ChallengeResult case class Answer(answer: String, id: String) case class Result(result: String) +case class CaptchaConfig( + name: String, + allowedLevels: List[String], + allowedMedia: List[String], + allowedInputType: List[String], + config: String +)