Exemple #1
0
        public void Deserialize(BinaryAPIReader reader)
        {
            if (reader == null)
            {
                throw new ArgumentNullException(nameof(reader));
            }

            HostOsuId   = reader.ReadLong();
            Name        = reader.ReadString();
            Acronym     = reader.ReadString();
            Thread      = reader.ReadString();
            CountryCode = reader.ReadString();
            Start       = reader.ReadDate();
            End         = reader.ReadDate();
            RankMin     = reader.ReadLong();
            RankMax     = reader.ReadLong();

            int teams = reader.ReadInt();

            for (int i = 0; i < teams; i++)
            {
                GlobalStatsTeam team = new GlobalStatsTeam();
                team.Deserialize(reader);

                Teams.Add(team);
            }
        }
        public void Deserialize(BinaryAPIReader reader)
        {
            if (reader == null)
            {
                throw new ArgumentNullException(nameof(reader));
            }

            Username          = reader.ReadString();
            OsuId             = reader.ReadLong();
            BWSRank           = reader.ReadDouble();
            TournamentWins    = reader.ReadInt();
            LastPlacement     = reader.ReadString();
            TournamentsPlayed = reader.ReadInt();
            BadgeCount        = reader.ReadInt();
            LastUpdated       = reader.ReadDate();
        }
Exemple #3
0
        public void Deserialize(BinaryAPIReader reader)
        {
            if (reader == null)
            {
                throw new ArgumentNullException(nameof(reader));
            }

            Placement = reader.ReadInt();
            Name      = reader.ReadString();

            int users = reader.ReadInt();

            for (int i = 0; i < users; i++)
            {
                OsuUserIds.Add(reader.ReadLong());
            }
        }