Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ppy
GitHub Repository: ppy/osu
Path: blob/master/osu.Desktop/IPC/Messages/OsuWebSocketMessage.cs
20048 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 Newtonsoft.Json;
using osu.Framework.Extensions.TypeExtensions;

namespace osu.Desktop.IPC.Messages
{
    public abstract class OsuWebSocketMessage
    {
        [JsonProperty("type")]
        public string Type { get; }

        protected OsuWebSocketMessage()
        {
            Type = GetType().ReadableName();
        }
    }
}