public void MergeFrom(GlobalSettings other) { if (other == null) { return; } if (other.fortSettings_ != null) { if (fortSettings_ == null) { fortSettings_ = new global::POGOProtos.Settings.FortSettings(); } FortSettings.MergeFrom(other.FortSettings); } if (other.mapSettings_ != null) { if (mapSettings_ == null) { mapSettings_ = new global::POGOProtos.Settings.MapSettings(); } MapSettings.MergeFrom(other.MapSettings); } if (other.levelSettings_ != null) { if (levelSettings_ == null) { levelSettings_ = new global::POGOProtos.Settings.LevelSettings(); } LevelSettings.MergeFrom(other.LevelSettings); } if (other.inventorySettings_ != null) { if (inventorySettings_ == null) { inventorySettings_ = new global::POGOProtos.Settings.InventorySettings(); } InventorySettings.MergeFrom(other.InventorySettings); } if (other.MinimumClientVersion.Length != 0) { MinimumClientVersion = other.MinimumClientVersion; } if (other.gpsSettings_ != null) { if (gpsSettings_ == null) { gpsSettings_ = new global::POGOProtos.Settings.GpsSettings(); } GpsSettings.MergeFrom(other.GpsSettings); } if (other.festivalSettings_ != null) { if (festivalSettings_ == null) { festivalSettings_ = new global::POGOProtos.Settings.FestivalSettings(); } FestivalSettings.MergeFrom(other.FestivalSettings); } if (other.eventSettings_ != null) { if (eventSettings_ == null) { eventSettings_ = new global::POGOProtos.Settings.EventSettings(); } EventSettings.MergeFrom(other.EventSettings); } if (other.MaxPokemonTypes != 0) { MaxPokemonTypes = other.MaxPokemonTypes; } if (other.sfidaSettings_ != null) { if (sfidaSettings_ == null) { sfidaSettings_ = new global::POGOProtos.Settings.SfidaSettings(); } SfidaSettings.MergeFrom(other.SfidaSettings); } if (other.newsSettings_ != null) { if (newsSettings_ == null) { newsSettings_ = new global::POGOProtos.Settings.NewsSettings(); } NewsSettings.MergeFrom(other.NewsSettings); } if (other.translationSettings_ != null) { if (translationSettings_ == null) { translationSettings_ = new global::POGOProtos.Settings.TranslationSettings(); } TranslationSettings.MergeFrom(other.TranslationSettings); } if (other.passcodeSettings_ != null) { if (passcodeSettings_ == null) { passcodeSettings_ = new global::POGOProtos.Settings.PasscodeSettings(); } PasscodeSettings.MergeFrom(other.PasscodeSettings); } if (other.notificationSettings_ != null) { if (notificationSettings_ == null) { notificationSettings_ = new global::POGOProtos.Settings.NotificationSettings(); } NotificationSettings.MergeFrom(other.NotificationSettings); } clientAppBlacklist_.Add(other.clientAppBlacklist_); if (other.clientPerfSettings_ != null) { if (clientPerfSettings_ == null) { clientPerfSettings_ = new global::POGOProtos.Settings.ClientPerformanceSettings(); } ClientPerfSettings.MergeFrom(other.ClientPerfSettings); } }
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(); } return(hash); }