Class RewardsAPI

  • All Implemented Interfaces:
    RestController

    public class RewardsAPI
    extends Controller
    Cheetah Loyalty Rewards Module Rewards API is the API of the Rewards
    • Constructor Detail

      • RewardsAPI

        public RewardsAPI()
    • Method Detail

      • getRewardCategories

        public void getRewardCategories​(RewardParams parameters,
                                        boolean clearCache,
                                        ListenerModel<BaseModel<Categories>,​Categories> listener)
        Get the reward categories
        Parameters:
        parameters - RewardParams query parameters
        clearCache - boolean true to clear cache otherwise false
        listener - callback for the API containing the response
      • getRewards

        public void getRewards​(RewardParams parameters,
                               boolean clearCache,
                               ListenerModel<BaseModel<Rewards>,​Rewards> listener)
        Get the rewards list
        Parameters:
        parameters - RewardParams query parameters
        clearCache - boolean true to clear cache otherwise false
        listener - callback for the API containing the response
      • getFavoriteRewards

        public void getFavoriteRewards​(RewardParams parameters,
                                       boolean clearCache,
                                       ListenerModel<BaseModel<Rewards>,​Rewards> listener)
        Get the favorite rewards list
        Parameters:
        parameters - RewardParams query parameters
        clearCache - boolean true to clear cache otherwise false
        listener - callback for the API containing the response
      • getReward

        public void getReward​(RewardParams parameters,
                              boolean clearCache,
                              ListenerModel<BaseModel<Reward>,​Reward> listener)
        Get the reward object
        Parameters:
        clearCache - boolean true to clear cache otherwise false
        parameters - RewardParams query parameters
        listener - callback for the API containing the response
      • getRedemptions

        public void getRedemptions​(RewardParams parameters,
                                   boolean clearCache,
                                   ListenerModel<BaseModel<Redemptions>,​Redemptions> listener)
        Get the list of redemptions
        Parameters:
        parameters - RewardParams query parameters
        clearCache - boolean true to clear cache otherwise false
        listener - callback for the API containing the response
      • getRedemption

        public void getRedemption​(RewardParams parameters,
                                  boolean clearCache,
                                  ListenerModel<BaseModel<Redemption>,​Redemption> listener)
        Get the redemption
        Parameters:
        parameters - RewardParams query parameters
        clearCache - boolean true to clear cache otherwise false
        listener - callback for the API containing the response
      • getAwards

        public void getAwards​(RewardParams params,
                              boolean clearCache,
                              ListenerModel<BaseModel<Awards>,​Awards> listener)
        Get the awards
        Parameters:
        params - RewardParams query parameters
        clearCache - boolean true to clear cache otherwise false
        listener - callback for the API containing the response
      • getAward

        public void getAward​(RewardParams params,
                             boolean clearCache,
                             ListenerModel<BaseModel<Award>,​Award> listener)
        Get the award
        Parameters:
        params - RewardParams query parameters
        clearCache - boolean true to clear cache otherwise false
        listener - callback for the API containing the response