예제 #1
0
        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);
        }
예제 #2
0
 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);
     }
 }
 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);
     }
     if (other.newsGlobalSettings_ != null)
     {
         if (newsGlobalSettings_ == null)
         {
             newsGlobalSettings_ = new global::POGOProtos.Settings.NewsGlobalSettings();
         }
         NewsGlobalSettings.MergeFrom(other.NewsGlobalSettings);
     }
     if (other.telemetryGlobalSettings_ != null)
     {
         if (telemetryGlobalSettings_ == null)
         {
             telemetryGlobalSettings_ = new global::POGOProtos.Settings.TelemetryGlobalSettings();
         }
         TelemetryGlobalSettings.MergeFrom(other.TelemetryGlobalSettings);
     }
     if (other.loginSettings_ != null)
     {
         if (loginSettings_ == null)
         {
             loginSettings_ = new global::POGOProtos.Settings.LoginSettings();
         }
         LoginSettings.MergeFrom(other.LoginSettings);
     }
     if (other.questGlobalSettings_ != null)
     {
         if (questGlobalSettings_ == null)
         {
             questGlobalSettings_ = new global::POGOProtos.Settings.QuestGlobalSettings();
         }
         QuestGlobalSettings.MergeFrom(other.QuestGlobalSettings);
     }
     if (other.socialSettings_ != null)
     {
         if (socialSettings_ == null)
         {
             socialSettings_ = new global::POGOProtos.Settings.SocialClientSettings();
         }
         SocialSettings.MergeFrom(other.SocialSettings);
     }
     if (other.tradingGlobalSettings_ != null)
     {
         if (tradingGlobalSettings_ == null)
         {
             tradingGlobalSettings_ = new global::POGOProtos.Settings.TradingGlobalSettings();
         }
         TradingGlobalSettings.MergeFrom(other.TradingGlobalSettings);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        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);
        }