public void OnReceivingResponse(JSONArray data, IO.Branch.Referral.BranchError error) { if (callback == null) { return; } if (error == null) { callback.CreditHistory(BranchAndroidUtils.ToCreditHistoryArray(data)); } else { BranchError err = new BranchError(error.Message, (int)error.ErrorCode); callback.RewardsRequestError(err); } }
public void LoadRewardsCallback(bool changed, NSError error) { if (callback == null) { return; } if (error == null) { callback.RewardsLoaded(); } else { BranchError err = new BranchError(error.Description, (int)error.Code); callback.RewardsRequestError(err); } }