sharp-chat/SharpChatCommon/Events/ChannelAddEventData.cs
2024-05-29 20:51:41 +00:00

21 lines
592 B
C#

using System.Text.Json.Serialization;
namespace SharpChat.Events {
[ChatEventDataFor("chan:add")]
public class ChannelAddEventData : ChatEventData {
[JsonPropertyName("temp")]
public bool IsTemporary { get; }
[JsonPropertyName("rank")]
public int MinRank { get; }
[JsonPropertyName("pass")]
public string Password { get; }
public ChannelAddEventData(bool isTemporary, int minRank, string password) {
IsTemporary = isTemporary;
MinRank = minRank;
Password = password;
}
}
}