Class APIListResource<T extends APIEntity>

java.lang.Object
com.testdroid.api.APIListResource<T>

public class APIListResource<T extends APIEntity> extends Object
Author:
Ɓukasz Kajda <[email protected]>, Slawomir Pawluk <[email protected]>
  • Constructor Details

  • Method Details

    • getEntity

      public APIList<T> getEntity() throws APIException
      Throws:
      APIException
    • getTotal

      public 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.