Class ReferralAPI

  • All Implemented Interfaces:
    RestController

    public class ReferralAPI
    extends Controller
    Class for setting the query parameters of Referral API. All Nullable parameters means you can remove the parameter by passing a null value.
    • Constructor Detail

      • ReferralAPI

        public ReferralAPI()
    • Method Detail

      • getReferralCodes

        public void getReferralCodes​(ReferralParams referralParams,
                                     boolean clearCache,
                                     ListenerModel<BaseModel<java.util.List<ReferralCode>>,​java.util.List<ReferralCode>> listener)
        Retrieve referral codes
        Parameters:
        referralParams - the ReferralParams for Referral API
        clearCache - set to true to clear previously stored cache
        listener - callback to handle the results
      • getReferralCodeSuggestions

        public void getReferralCodeSuggestions​(ReferralParams referralParams,
                                               boolean clearCache,
                                               ListenerModel<BaseModel<java.util.List<java.lang.String>>,​java.util.List<java.lang.String>> listener)
        Retrieve referral code suggestions
        Parameters:
        referralParams - the ReferralParams for Referral API
        clearCache - set to true to clear previously stored cache
        listener - callback to handle the results