diff --git a/app/models/Models.scala b/app/models/Models.scala index 357cbb1..ddfbf67 100644 --- a/app/models/Models.scala +++ b/app/models/Models.scala @@ -1045,6 +1045,20 @@ case class ShareTextItem( } } +case class VoterEligibilityScreen( + title: Option[String], + title_i18n: Option[Map[String, String]], + description: Option[String], + description_i18n: Option[Map[String, String]], + footer: Option[String], + footer_i18n: Option[Map[String, String]] +) +{ + def validate() = + { + } +} + /** defines presentation options for an election */ case class ElectionPresentation( share_text: Option[Array[ShareTextItem]], @@ -1067,7 +1081,8 @@ case class ElectionPresentation( i18n_override: Option[Map[String, Map[String, String]]], public_title: Option[String], - public_title_i18n: Option[Map[String, String]] + public_title_i18n: Option[Map[String, String]], + voter_eligibility_screen: Option[VoterEligibilityScreen] ) { def shareTextConfig() : Option[Array[ShareTextItem]] = { diff --git a/app/utils/JsonFormatters.scala b/app/utils/JsonFormatters.scala index a8dfe98..23b5e4a 100644 --- a/app/utils/JsonFormatters.scala +++ b/app/utils/JsonFormatters.scala @@ -64,6 +64,7 @@ object JsonFormatters { implicit val dateDtoF = Json.format[DateDTO] implicit val voteF = Json.format[Vote] implicit val electionExtraF = Json.format[ElectionExtra] + implicit val voterEligibilityScreenF = Json.format[VoterEligibilityScreen] implicit val questionConditionF = Json.format[QuestionCondition] implicit val conditionalQuestionF = Json.format[ConditionalQuestion] implicit val electionF = Json.format[Election]