13 lines
379 B
C#
13 lines
379 B
C#
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;
|
|
}
|
|
}
|
|
}
|