Class CodesAPI
- java.lang.Object
-
- com.cheetahdigital.corekit.models.module.Controller
-
- com.cheetahdigital.codes.core.api.CodesAPI
-
- All Implemented Interfaces:
RestController
public class CodesAPI extends Controller
Class for setting the query parameters of Codes API. AllNullable
parameters means you can remove the parameter by passing anull
value.
-
-
Field Summary
-
Fields inherited from class com.cheetahdigital.corekit.models.module.Controller
STANDARD_DATE_FORMAT, TIMEZONE_DATE_FORMAT
-
-
Constructor Summary
Constructors Constructor Description CodesAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enterCode(CodesParams codesParams, Listener<BaseModel<CodeData>> listener)
Submit code with a corresponding valuevoid
enterLotteryCode(CodesParams codesParams, Listener<BaseModel<CodeData>> listener)
Submit code with a corresponding value-
Methods inherited from class com.cheetahdigital.corekit.models.module.Controller
createCache, createHttpClient, createRetrofitInterface, evictAllCache, getGsonConfiguration, getRestAdapter, getTimeoutConnectionInSeconds, getTimeoutSocketInSeconds, initialize, removeResponsesFromCache
-
-
-
-
Method Detail
-
enterCode
public void enterCode(CodesParams codesParams, Listener<BaseModel<CodeData>> listener)
Submit code with a corresponding value- Parameters:
codesParams
- theCodesParams
for Codes APIlistener
- callback to handle the results
-
enterLotteryCode
public void enterLotteryCode(CodesParams codesParams, Listener<BaseModel<CodeData>> listener)
Submit code with a corresponding value- Parameters:
codesParams
- theCodesParams
for Codes APIlistener
- callback to handle the results
-
-