Skip to content

Instantly share code, notes, and snippets.

@duanebester
Last active November 22, 2019 23:42
Show Gist options
  • Save duanebester/42719682103e92b62029af055bc98f5e to your computer and use it in GitHub Desktop.
Save duanebester/42719682103e92b62029af055bc98f5e to your computer and use it in GitHub Desktop.
Search Response case class
package models.responses
import models.common._
// SearchResponse.scala
trait SearchResponse[T <: GeoSearchable] {
val hits: Seq[T]
val total: Long
}
trait GeoSearchable {
val location: Location
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment