private void onClaimQuickNotificationRewardResponse(ClaimQuickNotificationRewardOperation operation, HttpResponse httpResponse) { Reward reward = operation.ResponseBody.reward.ToReward(); if (!(reward?.isEmpty() ?? true)) { Service.Get <EventDispatcher>().DispatchEvent(new RewardServiceEvents.ClaimQuickNotificationRewardSuccess(reward)); } else { Service.Get <EventDispatcher>().DispatchEvent(default(RewardServiceEvents.ClaimQuickNotificationRewardFailed)); } }
private void onClaimQuickNotificationRewardFailed(ClaimQuickNotificationRewardOperation operation, HttpResponse httpResponse) { Service.Get <EventDispatcher>().DispatchEvent(default(RewardServiceEvents.ClaimQuickNotificationRewardFailed)); handleCPResponseError(operation, httpResponse); }
public APICall <ClaimQuickNotificationRewardOperation> ClaimQuickNotificationReward() { ClaimQuickNotificationRewardOperation operation = new ClaimQuickNotificationRewardOperation(); return(new APICall <ClaimQuickNotificationRewardOperation>(clubPenguinClient, operation)); }