コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }