private void onClaimPreregistrationRewardsResponse(ClaimPreregistrationRewardOperation operation, HttpResponse httpResponse)
    {
        Reward reward = operation.ResponseBody.reward.ToReward();

        if (!(reward?.isEmpty() ?? true))
        {
            Service.Get <EventDispatcher>().DispatchEvent(new RewardServiceEvents.MyRewardEarned(RewardSource.SERVER_OBJECT, "PreRegistrationReward", reward));
            Service.Get <EventDispatcher>().DispatchEvent(new RewardServiceEvents.ClaimPreregistrationRewardFound(reward));
        }
        else
        {
            Service.Get <EventDispatcher>().DispatchEvent(default(RewardServiceEvents.ClaimPreregistrationRewardNotFound));
        }
        handleCPResponse(operation.ResponseBody);
    }
 private void onClaimPreregistrationRewardsError(ClaimPreregistrationRewardOperation operation, HttpResponse httpResponse)
 {
     Service.Get <EventDispatcher>().DispatchEvent(default(RewardServiceEvents.ClaimPreregistrationRewardNotFound));
 }
    public APICall <ClaimPreregistrationRewardOperation> ClaimPreregistationRewards()
    {
        ClaimPreregistrationRewardOperation operation = new ClaimPreregistrationRewardOperation();

        return(new APICall <ClaimPreregistrationRewardOperation>(clubPenguinClient, operation));
    }