22 lines
592 B
C#
22 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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|