public override int GetHashCode() { int hash = 1; if (fortSettings_ != null) { hash ^= FortSettings.GetHashCode(); } if (mapSettings_ != null) { hash ^= MapSettings.GetHashCode(); } if (levelSettings_ != null) { hash ^= LevelSettings.GetHashCode(); } if (inventorySettings_ != null) { hash ^= InventorySettings.GetHashCode(); } if (MinimumClientVersion.Length != 0) { hash ^= MinimumClientVersion.GetHashCode(); } if (gpsSettings_ != null) { hash ^= GpsSettings.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (fortSettings_ != null) { hash ^= FortSettings.GetHashCode(); } if (mapSettings_ != null) { hash ^= MapSettings.GetHashCode(); } if (levelSettings_ != null) { hash ^= LevelSettings.GetHashCode(); } if (inventorySettings_ != null) { hash ^= InventorySettings.GetHashCode(); } if (MinimumClientVersion.Length != 0) { hash ^= MinimumClientVersion.GetHashCode(); } if (gpsSettings_ != null) { hash ^= GpsSettings.GetHashCode(); } if (festivalSettings_ != null) { hash ^= FestivalSettings.GetHashCode(); } if (eventSettings_ != null) { hash ^= EventSettings.GetHashCode(); } if (MaxPokemonTypes != 0) { hash ^= MaxPokemonTypes.GetHashCode(); } if (sfidaSettings_ != null) { hash ^= SfidaSettings.GetHashCode(); } if (newsSettings_ != null) { hash ^= NewsSettings.GetHashCode(); } if (translationSettings_ != null) { hash ^= TranslationSettings.GetHashCode(); } if (passcodeSettings_ != null) { hash ^= PasscodeSettings.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (fortSettings_ != null) { hash ^= FortSettings.GetHashCode(); } if (mapSettings_ != null) { hash ^= MapSettings.GetHashCode(); } if (levelSettings_ != null) { hash ^= LevelSettings.GetHashCode(); } if (inventorySettings_ != null) { hash ^= InventorySettings.GetHashCode(); } if (MinimumClientVersion.Length != 0) { hash ^= MinimumClientVersion.GetHashCode(); } if (gpsSettings_ != null) { hash ^= GpsSettings.GetHashCode(); } if (festivalSettings_ != null) { hash ^= FestivalSettings.GetHashCode(); } if (eventSettings_ != null) { hash ^= EventSettings.GetHashCode(); } if (MaxPokemonTypes != 0) { hash ^= MaxPokemonTypes.GetHashCode(); } if (sfidaSettings_ != null) { hash ^= SfidaSettings.GetHashCode(); } if (newsSettings_ != null) { hash ^= NewsSettings.GetHashCode(); } if (translationSettings_ != null) { hash ^= TranslationSettings.GetHashCode(); } if (passcodeSettings_ != null) { hash ^= PasscodeSettings.GetHashCode(); } if (notificationSettings_ != null) { hash ^= NotificationSettings.GetHashCode(); } hash ^= clientAppBlacklist_.GetHashCode(); if (clientPerfSettings_ != null) { hash ^= ClientPerfSettings.GetHashCode(); } if (newsGlobalSettings_ != null) { hash ^= NewsGlobalSettings.GetHashCode(); } if (telemetryGlobalSettings_ != null) { hash ^= TelemetryGlobalSettings.GetHashCode(); } if (loginSettings_ != null) { hash ^= LoginSettings.GetHashCode(); } if (questGlobalSettings_ != null) { hash ^= QuestGlobalSettings.GetHashCode(); } if (socialSettings_ != null) { hash ^= SocialSettings.GetHashCode(); } if (tradingGlobalSettings_ != null) { hash ^= TradingGlobalSettings.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public async Task InvokeAsync(HttpContext context) { string versionParam = GetQueryParameter(context, "v"); if (!Version.TryParse(versionParam, out Version version) || version < MinimumClientVersion) { context.Response.StatusCode = StatusCodes.Status200OK; context.Response.ContentType = "text/xml"; await context.Response.WriteAsync( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + $"<subsonic-response xmlns=\"http://subsonic.org/restapi\" status=\"failed\" version=\"{MinimumClientVersion.ToString(3)}\">\n" + " <error code=\"20\" message=\"Incompatible Subsonic REST protocol version. Client must upgrade.\"/>\n" + "</subsonic-response>"); return; } // Call the next delegate/middleware in the pipeline await _next(context); }