io.cafienne.bounded.cargosample.persistence.CargoDomainEventJsonProtocol.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cargo-sample_2.12 Show documentation
Show all versions of cargo-sample_2.12 Show documentation
Scala and Akka based Domain Driven Design Framework
The newest version!
/*
* Copyright (C) 2016-2018 Cafienne B.V.
*/
package io.cafienne.bounded.cargosample.persistence
import io.cafienne.bounded.cargosample.domain.CargoDomainProtocol.{CargoPlanned, NewRouteSpecified}
import spray.json._
object CargoDomainEventJsonProtocol extends DefaultJsonProtocol {
import io.cafienne.bounded.aggregate.ProtocolJsonProtocol._
import io.cafienne.bounded.cargosample.domain.CargoDomainJsonProtocol._
implicit val cargoPlannedFmt = jsonFormat4(CargoPlanned)
implicit val newRouteSpecifiedFmt = jsonFormat3(NewRouteSpecified)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy