Last active
November 22, 2019 23:38
-
-
Save duanebester/33b5b98f1ca9f94f71bbd9e3b5878293 to your computer and use it in GitHub Desktop.
Input Models
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package models.variables | |
import spray.json.DefaultJsonProtocol | |
import models.common.Location | |
// BBox.scala | |
case class BBox(topLeft: Location, bottomRight: Location) | |
object BBox extends DefaultJsonProtocol { | |
implicit val format = jsonFormat2(BBox.apply) | |
} | |
// Filter.scala | |
case class Filter(name: Option[String], bbox: Option[BBox]) | |
object Filter extends DefaultJsonProtocol { | |
implicit val format = jsonFormat2(Filter.apply) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment