From f9ac0adf5c3bcfcde03bd3ea2bc2471b0d0f99fe Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Wed, 5 Jul 2017 19:02:13 -0700 Subject: Implement REST services for trial curation --- src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala') diff --git a/src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala b/src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala index ddc927d..a313703 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/services/ExportService.scala @@ -18,7 +18,7 @@ object ExportService { object GetPatientReply { type Error = GetPatientReply with DomainError - case class Entity(x: ExportPatientWithLabels) extends GetPatientReply + final case class Entity(x: ExportPatientWithLabels) extends GetPatientReply case object NotFoundError extends GetPatientReply with DomainError.NotFoundError { def userMessage: String = "Patient not found" @@ -27,7 +27,7 @@ object ExportService { sealed trait GetTrialListReply object GetTrialListReply { - case class EntityList(xs: Seq[ExportTrial], totalFound: Int, lastUpdate: Option[LocalDateTime]) + final case class EntityList(xs: Seq[ExportTrial], totalFound: Int, lastUpdate: Option[LocalDateTime]) extends GetTrialListReply } @@ -35,7 +35,7 @@ object ExportService { object GetTrialReply { type Error = GetTrialReply with DomainError - case class Entity(x: ExportTrialWithLabels) extends GetTrialReply + final case class Entity(x: ExportTrialWithLabels) extends GetTrialReply case object NotFoundError extends GetTrialReply with DomainError.NotFoundError { def userMessage: String = "Trial not found" -- cgit v1.2.3