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