1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-18 02:02:54 +08:00
osu-lazer/osu.Game/Online/Notifications/WebSocket/SocketMessage.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
685 B
C#
Raw Normal View History

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace osu.Game.Online.Notifications.WebSocket
{
/// <summary>
/// A websocket message, sent either from the client or server.
/// </summary>
[JsonObject(MemberSerialization.OptIn)]
public class SocketMessage
{
2022-10-28 15:32:17 +08:00
[JsonProperty(@"event")]
public string Event { get; set; } = null!;
2022-10-28 15:32:17 +08:00
[JsonProperty(@"data")]
public JObject? Data { get; set; }
2022-10-28 15:32:17 +08:00
[JsonProperty(@"error")]
public string? Error { get; set; }
}
}