Class ContentPagesAPI
- java.lang.Object
-
- com.cheetahdigital.corekit.models.module.Controller
-
- com.cheetahdigital.content.core.api.contentpages.ContentPagesAPI
-
- All Implemented Interfaces:
RestController
public class ContentPagesAPI extends Controller
Class for setting the query parameters of Content Pages API. AllNullableparameters means you can remove the parameter by passing anullvalue.
-
-
Field Summary
-
Fields inherited from class com.cheetahdigital.corekit.models.module.Controller
STANDARD_DATE_FORMAT, TIMEZONE_DATE_FORMAT
-
-
Constructor Summary
Constructors Constructor Description ContentPagesAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetContentPage(ContentPagesParams contentPagesParams, boolean clearCache, ListenerModel<BaseModel<ContentPage>,ContentPage> listener)Get a specific content page from the servervoidgetContentPages(ContentPagesParams contentPagesParams, boolean clearCache, ListenerModel<BaseModel<ContentPages>,ContentPages> listener)Get All ContentPages-
Methods inherited from class com.cheetahdigital.corekit.models.module.Controller
createCache, createHttpClient, createRetrofitInterface, evictAllCache, getGsonConfiguration, getRestAdapter, getTimeoutConnectionInSeconds, getTimeoutSocketInSeconds, initialize, removeResponsesFromCache
-
-
-
-
Method Detail
-
getContentPages
public void getContentPages(ContentPagesParams contentPagesParams, boolean clearCache, ListenerModel<BaseModel<ContentPages>,ContentPages> listener)
Get All ContentPages- Parameters:
contentPagesParams- theContentPagesParamsfor Content Pages APIclearCache- set totrueto clear previously stored cachelistener- callback to handle the results
-
getContentPage
public void getContentPage(ContentPagesParams contentPagesParams, boolean clearCache, ListenerModel<BaseModel<ContentPage>,ContentPage> listener)
Get a specific content page from the server- Parameters:
contentPagesParams- theContentPagesParamsfor Content Pages APIclearCache- set totrueto clear previously stored cachelistener- callback to handle the results
-
-