Table of Contents

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

ulong?

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

Punishment[]

Responses

Responses to the asked questions.

[JsonPropertyName("responses")]
public AppealResponse[] Responses { get; set; }

Property Value

AppealResponse[]

TicketId

Unique ID of the ticket.

[JsonPropertyName("ticket_guid")]
public Guid TicketId { get; set; }

Property Value

Guid

Methods

AddExtraInfo(DatabaseInterface, List<string>, IFormatProvider, CancellationToken)

public override Task AddExtraInfo(DatabaseInterface db, List<string> workingList, IFormatProvider formatter, CancellationToken token = default)

Parameters

db DatabaseInterface
workingList List<string>
formatter IFormatProvider
token CancellationToken

Returns

Task

ReadIntl(ByteReader, ushort)

protected override void ReadIntl(ByteReader reader, ushort version)

Parameters

reader ByteReader
version ushort

ReadProperty(ref Utf8JsonReader, string, JsonSerializerOptions)

public override bool ReadProperty(ref Utf8JsonReader reader, string propertyName, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader
propertyName string
options JsonSerializerOptions

Returns

bool

Write(Utf8JsonWriter, JsonSerializerOptions)

public override void Write(Utf8JsonWriter writer, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter
options JsonSerializerOptions

WriteIntl(ByteWriter)

protected override void WriteIntl(ByteWriter writer)

Parameters

writer ByteWriter