sharp-chat/SharpChatCommon/Events/UserDisconnectEventData.cs

14 lines
379 B
C#
Raw Permalink Normal View History

2024-05-24 03:44:20 +00:00
using System.Text.Json.Serialization;
namespace SharpChat.Events {
[ChatEventDataFor("user:disconnect")]
public class UserDisconnectEventData : ChatEventData {
[JsonPropertyName("reason")]
public UserDisconnectReason Reason { get; }
public UserDisconnectEventData(UserDisconnectReason reason) {
Reason = reason;
}
}
}