Class Appeal
- Namespace
- Uncreated.Warfare.Moderation.Appeals
- Assembly
- Uncreated.Warfare.dll
[JsonConverter(typeof(ModerationEntryConverter))]
public class Appeal : ModerationEntry, IModerationEntry
- Inheritance
-
Appeal
- Implements
- Inherited Members
Properties
AppealState
null if the appeal hasn't been resolved yet, otherwise whether or not the appeal was accepted.
[JsonPropertyName("appeal_state")]
public bool? AppealState { get; set; }
Property Value
- bool?
DiscordUserId
The ID of the user that opened the appeal.
[JsonPropertyName("discord_user_id")]
public ulong? DiscordUserId { get; set; }
Property Value
PunishmentKeys
Keys to the punishments being appealed.
[JsonPropertyName("punishments")]
public uint[] PunishmentKeys { get; set; }
Property Value
- uint[]
Punishments
Punishments being appealed.
[JsonPropertyName("punishments_detail")]
public Punishment?[] Punishments { get; set; }
Property Value
Responses
Responses to the asked questions.
[JsonPropertyName("responses")]
public AppealResponse[] Responses { get; set; }
Property Value
TicketId
Unique ID of the ticket.
[JsonPropertyName("ticket_guid")]
public Guid TicketId { get; set; }
Property Value
Methods
AddExtraInfo(DatabaseInterface, List<string>, IFormatProvider, CancellationToken)
public override Task AddExtraInfo(DatabaseInterface db, List<string> workingList, IFormatProvider formatter, CancellationToken token = default)
Parameters
dbDatabaseInterfaceworkingListList<string>formatterIFormatProvidertokenCancellationToken
Returns
ReadIntl(ByteReader, ushort)
protected override void ReadIntl(ByteReader reader, ushort version)
Parameters
readerByteReaderversionushort
ReadProperty(ref Utf8JsonReader, string, JsonSerializerOptions)
public override bool ReadProperty(ref Utf8JsonReader reader, string propertyName, JsonSerializerOptions options)
Parameters
readerUtf8JsonReaderpropertyNamestringoptionsJsonSerializerOptions
Returns
Write(Utf8JsonWriter, JsonSerializerOptions)
public override void Write(Utf8JsonWriter writer, JsonSerializerOptions options)
Parameters
writerUtf8JsonWriteroptionsJsonSerializerOptions
WriteIntl(ByteWriter)
protected override void WriteIntl(ByteWriter writer)
Parameters
writerByteWriter