Пример #1
0
        public void InitCallback(NSDictionary data, NSError error)
        {
            if (callback == null)
            {
                return;
            }

            if (error == null)
            {
                callback.InitSessionComplete(BranchIOSUtils.ToDictionary(data));
            }
            else
            {
                BranchError err = new BranchError(error.Description, (int)error.Code);
                callback.SessionRequestError(err);
            }
        }
        public void OnInitFinished(JSONObject data, IO.Branch.Referral.BranchError error)
        {
            if (callback == null)
            {
                return;
            }

            if (error == null)
            {
                callback.InitSessionComplete(BranchAndroidUtils.ToDictionary(data));
            }
            else
            {
                BranchError err = new BranchError(error.Message, error.ErrorCode);
                callback.SessionRequestError(err);
            }
        }