All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jejking.rprng.api.RandomIntegerCollectionResponse.scala Maven / Gradle / Ivy

The newest version!
package com.jejking.rprng.api

import spray.json.{DefaultJsonProtocol, RootJsonFormat}

/**
 * Encapsulates response to a request for some random integers.
 */
case class RandomIntegerCollectionResponse(content: Iterable[Iterable[Int]])

/**
  * Spray Json protocol object to allow response to be marshalled to JSON in the API.
  */
object RandomIntegerCollectionResponseProtocol extends DefaultJsonProtocol {
  implicit val format: RootJsonFormat[RandomIntegerCollectionResponse] = jsonFormat1(RandomIntegerCollectionResponse.apply)
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy