Class APIListResource<T extends APIEntity>


  • public class APIListResource<T extends APIEntity>
    extends java.lang.Object
    Author:
    Ɓukasz Kajda , Slawomir Pawluk
    • Constructor Detail

      • APIListResource

        public APIListResource​(APIClient client,
                               java.lang.String resourceURI,
                               java.lang.Class<T> type)
      • APIListResource

        public APIListResource​(APIClient client,
                               java.lang.String resourceURI,
                               Context<T> context)
    • Method Detail

      • getTotal

        public java.lang.Integer getTotal()
                                   throws APIException
        Returns total number of available items in this resource list.
        Throws:
        APIException - on any API errors.
      • getNext

        public APIListResource<T> getNext()
                                   throws APIException
        Returns resource with next page of items in that list. Should check with isNextAvailable() before calling this method. If no next page is available, returns null.
        Throws:
        APIException - on any API errors.
      • getPrevious

        public APIListResource<T> getPrevious()
                                       throws APIException
        Returns resource with previous page of items in that list. Should check with isPreviousAvailable() before calling this method. If no previous page is available, returns null.
        Throws:
        APIException - on any API errors.