36 lines
950 B
C#
36 lines
950 B
C#
|
using System.Text.Json.Serialization;
|
|||
|
|
|||
|
namespace SharpChat.Events {
|
|||
|
[ChatEventDataFor("chan:update")]
|
|||
|
public class ChannelUpdateEventData : ChatEventData {
|
|||
|
[JsonPropertyName("name")]
|
|||
|
public string? Name { get; }
|
|||
|
|
|||
|
[JsonPropertyName("temp")]
|
|||
|
public bool? IsTemporary { get; }
|
|||
|
|
|||
|
[JsonPropertyName("rank")]
|
|||
|
public int? MinRank { get; }
|
|||
|
|
|||
|
[JsonPropertyName("pass")]
|
|||
|
public string? Password { get; }
|
|||
|
|
|||
|
[JsonPropertyName("owner")]
|
|||
|
public long? OwnerId { get; set; }
|
|||
|
|
|||
|
public ChannelUpdateEventData(
|
|||
|
string? name = null,
|
|||
|
bool? isTemporary = null,
|
|||
|
int? minRank = null,
|
|||
|
string? password = null,
|
|||
|
long? ownerId = null
|
|||
|
) {
|
|||
|
Name = name;
|
|||
|
IsTemporary = isTemporary;
|
|||
|
MinRank = minRank;
|
|||
|
Password = password;
|
|||
|
OwnerId = ownerId;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|