public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + TitleUnicode.GetHashCode();
         hash = hash * 23 + TitleRoman.GetHashCode();
         hash = hash * 23 + ArtistUnicode.GetHashCode();
         hash = hash * 23 + ArtistRoman.GetHashCode();
         hash = hash * 23 + Creator.GetHashCode();
         hash = hash * 23 + DiffName.GetHashCode();
         hash = hash * 23 + Mp3Name.GetHashCode();
         hash = hash * 23 + Md5.GetHashCode();
         hash = hash * 23 + OsuFileName.GetHashCode();
         hash = hash * 23 + Tags.GetHashCode();
         hash = hash * 23 + Somestuff.GetHashCode();
         hash = hash * 23 + _state.GetHashCode();
         hash = hash * 23 + Circles.GetHashCode();
         hash = hash * 23 + Sliders.GetHashCode();
         hash = hash * 23 + Spinners.GetHashCode();
         hash = hash * 23 + EditDate.GetHashCode();
         hash = hash * 23 + ApproachRate.GetHashCode();
         hash = hash * 23 + CircleSize.GetHashCode();
         hash = hash * 23 + HpDrainRate.GetHashCode();
         hash = hash * 23 + OverallDifficulty.GetHashCode();
         hash = hash * 23 + SliderVelocity.GetHashCode();
         hash = hash * 23 + DrainingTime.GetHashCode();
         hash = hash * 23 + TotalTime.GetHashCode();
         hash = hash * 23 + PreviewTime.GetHashCode();
         hash = hash * 23 + MapId.GetHashCode();
         hash = hash * 23 + MapSetId.GetHashCode();
         hash = hash * 23 + ThreadId.GetHashCode();
         hash = hash * 23 + OsuGrade.GetHashCode();
         hash = hash * 23 + TaikoGrade.GetHashCode();
         hash = hash * 23 + CatchGrade.GetHashCode();
         hash = hash * 23 + ManiaGrade.GetHashCode();
         hash = hash * 23 + Offset.GetHashCode();
         hash = hash * 23 + StackLeniency.GetHashCode();
         hash = hash * 23 + PlayMode.GetHashCode();
         hash = hash * 23 + Source.GetHashCode();
         hash = hash * 23 + AudioOffset.GetHashCode();
         hash = hash * 23 + LetterBox.GetHashCode();
         hash = hash * 23 + Played.GetHashCode();
         hash = hash * 23 + LastPlayed.GetHashCode();
         hash = hash * 23 + IsOsz2.GetHashCode();
         hash = hash * 23 + Dir.GetHashCode();
         //hash = hash * 23 + LastSync.GetHashCode(); //This value is updated by osu even if no changes were made to the actual data
         hash = hash * 23 + DisableHitsounds.GetHashCode();
         hash = hash * 23 + DisableSkin.GetHashCode();
         hash = hash * 23 + DisableSb.GetHashCode();
         hash = hash * 23 + BgDim.GetHashCode();
         hash = hash * 23 + ModPpStars.GetHashCode();
         hash = hash * 23 + MaxBpm.GetHashCode();
         hash = hash * 23 + MinBpm.GetHashCode();
         hash = hash * 23 + MainBpm.GetHashCode();
         return(hash);
     }
 }
Exemple #2
0
        public override int GetHashCode()
        {
            int hashCode = -103033237;

            hashCode = hashCode * -1521134295 + MessageId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <User?> .Default.GetHashCode(From);

            hashCode = hashCode * -1521134295 + EqualityComparer <Chat?> .Default.GetHashCode(SenderChat);

            hashCode = hashCode * -1521134295 + Date.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Chat> .Default.GetHashCode(Chat);

            hashCode = hashCode * -1521134295 + EqualityComparer <User?> .Default.GetHashCode(ForwardFrom);

            hashCode = hashCode * -1521134295 + EqualityComparer <Chat?> .Default.GetHashCode(ForwardFromChat);

            hashCode = hashCode * -1521134295 + ForwardFromMessageId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(ForwardSignature);

            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(ForwardSenderName);

            hashCode = hashCode * -1521134295 + ForwardDate.GetHashCode();
            hashCode = hashCode * -1521134295 + IsAutomaticForward.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Message?> .Default.GetHashCode(ReplyToMessage);

            hashCode = hashCode * -1521134295 + EqualityComparer <User?> .Default.GetHashCode(ViaBot);

            hashCode = hashCode * -1521134295 + EditDate.GetHashCode();
            hashCode = hashCode * -1521134295 + HasProtectedContent.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(MediaGroupId);

            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(AuthorSignature);

            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(Text);

            hashCode = hashCode * -1521134295 + EqualityComparer <IEnumerable <MessageEntity>?> .Default.GetHashCode(Entities);

            hashCode = hashCode * -1521134295 + EqualityComparer <Animation?> .Default.GetHashCode(Animation);

            hashCode = hashCode * -1521134295 + EqualityComparer <Audio?> .Default.GetHashCode(Audio);

            hashCode = hashCode * -1521134295 + EqualityComparer <Document?> .Default.GetHashCode(Document);

            hashCode = hashCode * -1521134295 + EqualityComparer <PhotoSize[]?> .Default.GetHashCode(Photo);

            hashCode = hashCode * -1521134295 + EqualityComparer <Sticker?> .Default.GetHashCode(Sticker);

            hashCode = hashCode * -1521134295 + EqualityComparer <Video?> .Default.GetHashCode(Video);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoNote?> .Default.GetHashCode(VideoNote);

            hashCode = hashCode * -1521134295 + EqualityComparer <Voice?> .Default.GetHashCode(Voice);

            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(Caption);

            hashCode = hashCode * -1521134295 + EqualityComparer <IEnumerable <MessageEntity>?> .Default.GetHashCode(CaptionEntities);

            hashCode = hashCode * -1521134295 + EqualityComparer <Contact?> .Default.GetHashCode(Contact);

            hashCode = hashCode * -1521134295 + EqualityComparer <Dice?> .Default.GetHashCode(Dice);

            hashCode = hashCode * -1521134295 + EqualityComparer <Game?> .Default.GetHashCode(Game);

            hashCode = hashCode * -1521134295 + EqualityComparer <Poll?> .Default.GetHashCode(Poll);

            hashCode = hashCode * -1521134295 + EqualityComparer <Venue?> .Default.GetHashCode(Venue);

            hashCode = hashCode * -1521134295 + EqualityComparer <Location?> .Default.GetHashCode(Location);

            hashCode = hashCode * -1521134295 + EqualityComparer <User[]?> .Default.GetHashCode(NewChatMembers);

            hashCode = hashCode * -1521134295 + EqualityComparer <User?> .Default.GetHashCode(LeftChatMember);

            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(NewChatTitle);

            hashCode = hashCode * -1521134295 + EqualityComparer <PhotoSize[]?> .Default.GetHashCode(NewChatPhoto);

            hashCode = hashCode * -1521134295 + DeleteChatPhoto.GetHashCode();
            hashCode = hashCode * -1521134295 + GroupChatCreated.GetHashCode();
            hashCode = hashCode * -1521134295 + SupergroupChatCreated.GetHashCode();
            hashCode = hashCode * -1521134295 + ChannelChatCreated.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <MessageAutoDeleteTimerChanged?> .Default.GetHashCode(MessageAutoDeleteTimerChanged);

            hashCode = hashCode * -1521134295 + MigrateToChatId.GetHashCode();
            hashCode = hashCode * -1521134295 + MigrateFromChatId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Message?> .Default.GetHashCode(PinnedMessage);

            hashCode = hashCode * -1521134295 + EqualityComparer <Invoice?> .Default.GetHashCode(Invoice);

            hashCode = hashCode * -1521134295 + EqualityComparer <SuccessfulPayment?> .Default.GetHashCode(SuccessfulPayment);

            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(ConnectedWebsite);

            hashCode = hashCode * -1521134295 + EqualityComparer <PassportData?> .Default.GetHashCode(PassportData);

            hashCode = hashCode * -1521134295 + EqualityComparer <ProximityAlertTriggered?> .Default.GetHashCode(ProximityAlertTriggered);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatScheduled?> .Default.GetHashCode(VoiceChatScheduled);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatStarted?> .Default.GetHashCode(VoiceChatStarted);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatEnded?> .Default.GetHashCode(VoiceChatEnded);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatParticipantsInvited?> .Default.GetHashCode(VoiceChatParticipantsInvited);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatScheduled?> .Default.GetHashCode(VideoChatScheduled);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatStarted?> .Default.GetHashCode(VideoChatStarted);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatEnded?> .Default.GetHashCode(VideoChatEnded);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatParticipantsInvited?> .Default.GetHashCode(VideoChatParticipantsInvited);

            hashCode = hashCode * -1521134295 + EqualityComparer <WebAppData?> .Default.GetHashCode(WebAppData);

            hashCode = hashCode * -1521134295 + EqualityComparer <InlineKeyboardMarkup?> .Default.GetHashCode(ReplyMarkup);

            return(hashCode);
        }