diff options
author | vlad <vlad@driver.xyz> | 2017-07-21 15:11:19 -0700 |
---|---|---|
committer | vlad <vlad@driver.xyz> | 2017-07-21 15:11:19 -0700 |
commit | 4c9d4f0679f7b1f4ab179c8d3208cf207c81635a (patch) | |
tree | 399852c34f3c5bb734a8deb5df4e85fae09cfd3d /src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportTrialArm.scala | |
parent | 5279d01cedb35a759347f194c0e8adb21d19e88e (diff) | |
download | rest-query-4c9d4f0679f7b1f4ab179c8d3208cf207c81635a.tar.gz rest-query-4c9d4f0679f7b1f4ab179c8d3208cf207c81635a.tar.bz2 rest-query-4c9d4f0679f7b1f4ab179c8d3208cf207c81635a.zip |
Export service separation
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportTrialArm.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportTrialArm.scala | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportTrialArm.scala b/src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportTrialArm.scala index b2b02eb..ea96f58 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportTrialArm.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/formats/json/export/ApiExportTrialArm.scala @@ -2,9 +2,16 @@ package xyz.driver.pdsuidomain.formats.json.export import play.api.libs.functional.syntax._ import play.api.libs.json._ +import xyz.driver.pdsuicommon.domain.LongId +import xyz.driver.pdsuidomain.entities.Arm import xyz.driver.pdsuidomain.entities.export.trial.ExportTrialArm -final case class ApiExportTrialArm(armId: String, armName: String) +final case class ApiExportTrialArm(armId: String, armName: String) { + + def toDomain: ExportTrialArm = { + ExportTrialArm(LongId[Arm](armId.toLong), armName) + } +} object ApiExportTrialArm { |