Table of Contents

Class Report

Namespace
Uncreated.Warfare.Moderation.Reports
Assembly
Uncreated.Warfare.dll
[JsonConverter(typeof(ModerationEntryConverter))]
public class Report : ModerationEntry, IModerationEntry
Inheritance
Report
Implements
Derived
Inherited Members

Properties

ScreenshotJpgData

[JsonPropertyName("screenshot_data")]
[JsonConverter(typeof(ByteArrayJsonConverter))]
public byte[]? ScreenshotJpgData { get; set; }

Property Value

byte[]

ShouldScreenshot

[JsonIgnore]
public virtual bool ShouldScreenshot { get; }

Property Value

bool

Type

[JsonPropertyName("report_type")]
[JsonConverter(typeof(ReportTypeLegacyConverter))]
public ReportType Type { get; set; }

Property Value

ReportType

Methods

GetDisplayName()

public override string GetDisplayName()

Returns

string

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