private WebAPI.ResponseDataErr GetResponseError(string json) { WebAPI.ResponseDataErr responseDataErr = new WebAPI.ResponseDataErr(); try { responseDataErr = JsonMapper.ToObject <WebAPI.ResponseDataErr>(json); this.DEBUG_LOG("====================================API MESSAGE = " + responseDataErr.message); } catch (JsonException ex) { throw ex; } return(responseDataErr); }
private void ShowVersionError(WebAPI.ResponseDataErr errorData) { Action <int> onClosed = null; Func <CMD_Alert.ExtraFunctionReturnValue> onAlertButton = null; if (errorData.GetAPPVer() != null) { onAlertButton = new Func <CMD_Alert.ExtraFunctionReturnValue>(this.NewApplication); } else if (errorData.GetDATAVer() != null || errorData.GetASSETVer() != null) { onClosed = new Action <int>(this.BackToTop); } else if (!string.IsNullOrEmpty(errorData.GetPolicyVersion())) { onClosed = new Action <int>(this.BackToTop); } else { global::Debug.LogError("VenusStatus.RESPONSE_OLDVERSION なのにバージョン情報が無い"); onClosed = new Action <int>(this.BackToTop); } this.Open(errorData.subject, string.Empty, errorData.message, false, onClosed, onAlertButton); }
public WebAPIException(WWWResponse.LocalErrorStatus status, string message) : base(message) { this.responseDataError = null; this.localErrorStatus = status; }
public WebAPIException(WWWResponse.LocalErrorStatus status) { this.responseDataError = null; this.localErrorStatus = status; }
public WebAPIException(WebAPI.ResponseDataErr response, string message) : base(message) { this.responseDataError = response; this.localErrorStatus = WWWResponse.LocalErrorStatus.NONE; }
public WebAPIException(WebAPI.ResponseDataErr response) { this.responseDataError = response; this.localErrorStatus = WWWResponse.LocalErrorStatus.NONE; }