Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ppy
GitHub Repository: ppy/osu
Path: blob/master/osu.Game/Online/Metadata/BeatmapUpdates.cs
4376 views
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using System;
using MessagePack;

namespace osu.Game.Online.Metadata
{
    /// <summary>
    /// Describes a set of beatmaps which have been updated in some way.
    /// </summary>
    [MessagePackObject]
    [Serializable]
    public class BeatmapUpdates
    {
        [Key(0)]
        public int[] BeatmapSetIDs { get; set; }

        [Key(1)]
        public int LastProcessedQueueID { get; set; }

        public BeatmapUpdates(int[] beatmapSetIDs, int lastProcessedQueueID)
        {
            BeatmapSetIDs = beatmapSetIDs;
            LastProcessedQueueID = lastProcessedQueueID;
        }
    }
}