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; }
protected virtual void OnSuccess(RequestResponser obj) { }
public void LogRequestSuccess(ref RequestResponser responser) { "log".Log(GetType().Name.ToString().Append(" request success, Json result: ", responser.ResultRoot.ToString())); }