Class ReferralAPI
- java.lang.Object
-
- com.cheetahdigital.corekit.models.module.Controller
-
- com.cheetahdigital.referral.core.api.ReferralAPI
-
- All Implemented Interfaces:
com.cheetahdigital.corekit.rest.RestController
public class ReferralAPI extends com.cheetahdigital.corekit.models.module.Controller
Class for setting the query parameters of Referral API. AllNullable
parameters means you can remove the parameter by passing anull
value.
-
-
Constructor Summary
Constructors Constructor Description ReferralAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getReferralCodes(ReferralParams referralParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<java.util.List<ReferralCode>>,java.util.List<ReferralCode>> listener)
Retrieve referral codesvoid
getReferralCodeSuggestions(ReferralParams referralParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<java.util.List<java.lang.String>>,java.util.List<java.lang.String>> listener)
Retrieve referral code suggestionsvoid
saveReferralCode(ReferralParams referralParams, com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> listener)
Save referral code
-
-
-
Method Detail
-
getReferralCodes
public void getReferralCodes(ReferralParams referralParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<java.util.List<ReferralCode>>,java.util.List<ReferralCode>> listener)
Retrieve referral codes- Parameters:
referralParams
- theReferralParams
for Referral APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
getReferralCodeSuggestions
public void getReferralCodeSuggestions(ReferralParams referralParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<java.util.List<java.lang.String>>,java.util.List<java.lang.String>> listener)
Retrieve referral code suggestions- Parameters:
referralParams
- theReferralParams
for Referral APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
saveReferralCode
public void saveReferralCode(ReferralParams referralParams, com.cheetahdigital.corekit.models.module.Listener<com.cheetahdigital.corekit.models.responses.SuccessResponse> listener)
Save referral code- Parameters:
referralParams
- theReferralParams
for Referral APIlistener
- callback to handle the results
-
-