예제 #1
0
        private void BuildCallbacks()
        {
            if (Resposer == default)
            {
                Resposer = new RequestResponser()
                {
                    DataKeyField   = ResponseDataKeyField,
                    FailedKeyField = ResponseFailedKeyField,
                };
            }
            else
            {
            }

            Resposer.OnSuccessed      = ResponserIniter.OnResponseSuccess;
            Resposer.SuccessForCustom = ResponserIniter.SuccessForCustom;
            Resposer.Failed           = ResponserIniter.OnResponseFailed;
            Resposer.Error            = ResponserIniter.OnErrorNet;
        }
예제 #2
0
 protected virtual void OnSuccess(RequestResponser obj)
 {
 }
예제 #3
0
 public void LogRequestSuccess(ref RequestResponser responser)
 {
     "log".Log(GetType().Name.ToString().Append(" request success, Json result: ", responser.ResultRoot.ToString()));
 }