Package com.testdroid.api
Class APIListResource<T extends APIEntity>
java.lang.Object
com.testdroid.api.APIListResource<T>
- Author:
- Ćukasz Kajda <[email protected]>, Slawomir Pawluk <[email protected]>
-
Constructor Summary
ConstructorsConstructorDescriptionAPIListResource
(APIClient client, String resourceURI, Context<T> context) APIListResource
(APIClient client, String resourceURI, Class<T> type) -
Method Summary
-
Constructor Details
-
APIListResource
-
APIListResource
-
-
Method Details
-
getEntity
- Throws:
APIException
-
getTotal
Returns total number of available items in this resource list.- Throws:
APIException
- on any API errors.
-
getNext
Returns resource with next page of items in that list. Should check withisNextAvailable()
before calling this method. If no next page is available, returnsnull
.- Throws:
APIException
- on any API errors.
-
getPrevious
Returns resource with previous page of items in that list. Should check withisPreviousAvailable()
before calling this method. If no previous page is available, returnsnull
.- Throws:
APIException
- on any API errors.
-