mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-01-12 22:43:20 -05:00
Add captchaConfig case class
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
This commit is contained in:
parent
2b617ef75d
commit
21b299a30f
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user