Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CreationTimestampMs != 0L)
            {
                hash ^= CreationTimestampMs.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (Team != 0)
            {
                hash ^= Team.GetHashCode();
            }
            hash ^= tutorialState_.GetHashCode();
            if (avatar_ != null)
            {
                hash ^= Avatar.GetHashCode();
            }
            if (MaxPokemonStorage != 0)
            {
                hash ^= MaxPokemonStorage.GetHashCode();
            }
            if (MaxItemStorage != 0)
            {
                hash ^= MaxItemStorage.GetHashCode();
            }
            if (dailyBonus_ != null)
            {
                hash ^= DailyBonus.GetHashCode();
            }
            if (equippedBadge_ != null)
            {
                hash ^= EquippedBadge.GetHashCode();
            }
            if (contactSettings_ != null)
            {
                hash ^= ContactSettings.GetHashCode();
            }
            hash ^= currencies_.GetHashCode();
            if (RemainingCodenameClaims != 0)
            {
                hash ^= RemainingCodenameClaims.GetHashCode();
            }
            if (buddyPokemon_ != null)
            {
                hash ^= BuddyPokemon.GetHashCode();
            }
            if (BattleLockoutEndMs != 0L)
            {
                hash ^= BattleLockoutEndMs.GetHashCode();
            }
            if (secondaryPlayerAvatar_ != null)
            {
                hash ^= SecondaryPlayerAvatar.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CreationTimestampMs != 0L)
            {
                hash ^= CreationTimestampMs.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (Team != global::POGOProtos.Enums.TeamColor.Neutral)
            {
                hash ^= Team.GetHashCode();
            }
            hash ^= tutorialState_.GetHashCode();
            if (avatar_ != null)
            {
                hash ^= Avatar.GetHashCode();
            }
            if (MaxPokemonStorage != 0)
            {
                hash ^= MaxPokemonStorage.GetHashCode();
            }
            if (MaxItemStorage != 0)
            {
                hash ^= MaxItemStorage.GetHashCode();
            }
            if (dailyBonus_ != null)
            {
                hash ^= DailyBonus.GetHashCode();
            }
            if (equippedBadge_ != null)
            {
                hash ^= EquippedBadge.GetHashCode();
            }
            if (contactSettings_ != null)
            {
                hash ^= ContactSettings.GetHashCode();
            }
            hash ^= currencies_.GetHashCode();
            if (RemainingCodenameClaims != 0)
            {
                hash ^= RemainingCodenameClaims.GetHashCode();
            }
            if (buddyPokemon_ != null)
            {
                hash ^= BuddyPokemon.GetHashCode();
            }
            return(hash);
        }