mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 20:25:40 +00:00
17 lines
582 B
C#
17 lines
582 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Spacebar.Models.Generic;
|
|
|
|
public class ChannelPermissionOverwrite {
|
|
[JsonPropertyName("id")]
|
|
public string Id { get; set; }
|
|
|
|
[JsonPropertyName("type")]
|
|
public int Type { get; set; }
|
|
|
|
[JsonPropertyName("allow"), JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
|
|
public ulong Allow { get; set; }
|
|
|
|
[JsonPropertyName("deny"), JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
|
|
public ulong Deny { get; set; }
|
|
} |