com.gu.contentapi.client.model.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of content-api-client_2.12 Show documentation
Show all versions of content-api-client_2.12 Show documentation
Scala client for the Guardian's Content API
The newest version!
package com.gu.contentapi.client
import com.gu.contentapi.client.Decoder.PageableResponseDecoder
import com.twitter.scrooge.ThriftStruct
package object model {
implicit class RichPageableResponse[R <: ThriftStruct, E](response: R)(implicit prd: PageableResponseDecoder[R, E]) {
val impliesNoFurtherResults: Boolean = prd.elements(response).size < prd.pageSize(response)
}
private[model] def not[A](f: A => Boolean): A => Boolean = !f(_)
private[model] val isPaginationParameter = Set("page")
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy