Add captchaConfig case class

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
This commit is contained in:
Rahul Rudragoudar 2021-03-11 21:26:30 +05:30
parent 2b617ef75d
commit 21b299a30f
No known key found for this signature in database
GPG Key ID: 0D2CE231A7287EBC

View File

@ -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
)