public void NetworkAPIException(WebAPIException error) { if (Loading.IsShow()) { Loading.Invisible(); } if (error.responseDataError == null) { this.SetJsonParseExceptionMessage(error); this.ShowJsonParseError(); } else { WWWResponse.VenusStatus venus_status = (WWWResponse.VenusStatus)error.responseDataError.venus_status; if (venus_status != WWWResponse.VenusStatus.RESPONSE_MAINTENANCE) { if (venus_status != WWWResponse.VenusStatus.RESPONSE_OLDVERSION) { this.SetJsonParseExceptionMessage(error); this.ShowJsonParseError(); } else { this.ShowVersionError(error.responseDataError); } } else { this.ShowServerMaintenance(error.responseDataError.message); } } }
public bool IsBackTopScreenError() { bool result = true; if (this.responseDataError == null) { if (this.localErrorStatus != WWWResponse.LocalErrorStatus.LOCAL_ERROR_JSONPARSE) { result = false; } } else { WWWResponse.VenusStatus venus_status = (WWWResponse.VenusStatus) this.responseDataError.venus_status; if (venus_status == WWWResponse.VenusStatus.RESPONSE_ERROR || venus_status == WWWResponse.VenusStatus.RESPONSE_PENALTY || venus_status == WWWResponse.VenusStatus.RESPONSE_SERVER_LOAD_HIGH) { result = false; } } return(result); }