Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Iprotoid.Length != 0)
            {
                hash ^= Iprotoid.GetHashCode();
            }
            if (Id != 0L)
            {
                hash ^= Id.GetHashCode();
            }
            if (TemplateId.Length != 0)
            {
                hash ^= TemplateId.GetHashCode();
            }
            hash ^= cauldronSlot_.GetHashCode();
            if (BrewingStartTimestamp != 0L)
            {
                hash ^= BrewingStartTimestamp.GetHashCode();
            }
            if (AvailabilityStartTimestamp != 0L)
            {
                hash ^= AvailabilityStartTimestamp.GetHashCode();
            }
            if (AvailabilityTime != 0L)
            {
                hash ^= AvailabilityTime.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0L)
            {
                hash ^= Id.GetHashCode();
            }
            if (TemplateId.Length != 0)
            {
                hash ^= TemplateId.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (CompletionPedometerKm != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CompletionPedometerKm);
            }
            if (Timestamp != 0L)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode() {
   int hash = 1;
   if (TemplateId.Length != 0) hash ^= TemplateId.GetHashCode();
   if (Data.Length != 0) hash ^= Data.GetHashCode();
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
Пример #4
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (TemplateId.Length != 0)
                    {
                        hash ^= TemplateId.GetHashCode();
                    }
                    if (Data.Length != 0)
                    {
                        hash ^= Data.GetHashCode();
                    }
                    return(hash);
                }
Пример #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TemplateId.Length != 0)
            {
                hash ^= TemplateId.GetHashCode();
            }
            if (CauldronId != 0L)
            {
                hash ^= CauldronId.GetHashCode();
            }
            if (AvailabilityTime != 0L)
            {
                hash ^= AvailabilityTime.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #6
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (TemplateId != null)
         {
             hashCode = hashCode * 59 + TemplateId.GetHashCode();
         }
         if (RequestedTeamName != null)
         {
             hashCode = hashCode * 59 + RequestedTeamName.GetHashCode();
         }
         if (RequestedTeamDescription != null)
         {
             hashCode = hashCode * 59 + RequestedTeamDescription.GetHashCode();
         }
         if (RequestedTeamWelcomeMessage != null)
         {
             hashCode = hashCode * 59 + RequestedTeamWelcomeMessage.GetHashCode();
         }
         if (RequestedMembers != null)
         {
             hashCode = hashCode * 59 + RequestedMembers.GetHashCode();
         }
         if (RequestedOwners != null)
         {
             hashCode = hashCode * 59 + RequestedOwners.GetHashCode();
         }
         if (OnBehalfOfRequester != null)
         {
             hashCode = hashCode * 59 + OnBehalfOfRequester.GetHashCode();
         }
         return(hashCode);
     }
 }
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (TemplateId.Length != 0)
                    {
                        hash ^= TemplateId.GetHashCode();
                    }
                    if (pokemonSettings_ != null)
                    {
                        hash ^= PokemonSettings.GetHashCode();
                    }
                    if (itemSettings_ != null)
                    {
                        hash ^= ItemSettings.GetHashCode();
                    }
                    if (moveSettings_ != null)
                    {
                        hash ^= MoveSettings.GetHashCode();
                    }
                    if (moveSequenceSettings_ != null)
                    {
                        hash ^= MoveSequenceSettings.GetHashCode();
                    }
                    if (typeEffective_ != null)
                    {
                        hash ^= TypeEffective.GetHashCode();
                    }
                    if (badgeSettings_ != null)
                    {
                        hash ^= BadgeSettings.GetHashCode();
                    }
                    if (camera_ != null)
                    {
                        hash ^= Camera.GetHashCode();
                    }
                    if (playerLevel_ != null)
                    {
                        hash ^= PlayerLevel.GetHashCode();
                    }
                    if (gymLevel_ != null)
                    {
                        hash ^= GymLevel.GetHashCode();
                    }
                    if (battleSettings_ != null)
                    {
                        hash ^= BattleSettings.GetHashCode();
                    }
                    if (encounterSettings_ != null)
                    {
                        hash ^= EncounterSettings.GetHashCode();
                    }
                    if (iapItemDisplay_ != null)
                    {
                        hash ^= IapItemDisplay.GetHashCode();
                    }
                    if (iapSettings_ != null)
                    {
                        hash ^= IapSettings.GetHashCode();
                    }
                    if (pokemonUpgrades_ != null)
                    {
                        hash ^= PokemonUpgrades.GetHashCode();
                    }
                    if (equippedBadges_ != null)
                    {
                        hash ^= EquippedBadges.GetHashCode();
                    }
                    return(hash);
                }
Пример #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (QuestType != 0)
            {
                hash ^= QuestType.GetHashCode();
            }
            if (dailyQuest_ != null)
            {
                hash ^= DailyQuest.GetHashCode();
            }
            if (multiPart_ != null)
            {
                hash ^= MultiPart.GetHashCode();
            }
            if (catchPokemon_ != null)
            {
                hash ^= CatchPokemon.GetHashCode();
            }
            if (addFriend_ != null)
            {
                hash ^= AddFriend.GetHashCode();
            }
            if (tradePokemon_ != null)
            {
                hash ^= TradePokemon.GetHashCode();
            }
            if (QuestId.Length != 0)
            {
                hash ^= QuestId.GetHashCode();
            }
            if (QuestSeed != 0L)
            {
                hash ^= QuestSeed.GetHashCode();
            }
            if (QuestContext != 0)
            {
                hash ^= QuestContext.GetHashCode();
            }
            if (TemplateId.Length != 0)
            {
                hash ^= TemplateId.GetHashCode();
            }
            if (Progress != 0)
            {
                hash ^= Progress.GetHashCode();
            }
            if (goal_ != null)
            {
                hash ^= Goal.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            hash ^= questRewards_.GetHashCode();
            if (CreationTimestampMs != 0L)
            {
                hash ^= CreationTimestampMs.GetHashCode();
            }
            if (LastUpdateTimestampMs != 0L)
            {
                hash ^= LastUpdateTimestampMs.GetHashCode();
            }
            if (CompeletionTimestampMs != 0L)
            {
                hash ^= CompeletionTimestampMs.GetHashCode();
            }
            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (AdminGenerated != false)
            {
                hash ^= AdminGenerated.GetHashCode();
            }
            if (StampCountOverrideEnabled != false)
            {
                hash ^= StampCountOverrideEnabled.GetHashCode();
            }
            if (StampCountOverride != 0)
            {
                hash ^= StampCountOverride.GetHashCode();
            }
            if (S2CellId != 0L)
            {
                hash ^= S2CellId.GetHashCode();
            }
            if (StoryQuestTemplateVersion != 0)
            {
                hash ^= StoryQuestTemplateVersion.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #9
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 public override int GetHashCode()
 {
     return(TemplateId.GetHashCode());
 }