Table of Contents

Struct Evidence

Namespace
Uncreated.Warfare.Moderation
Assembly
Uncreated.Warfare.dll
public struct Evidence : IEquatable<Evidence>
Implements
Inherited Members

Constructors

Evidence()

public Evidence()

Evidence(ByteReader, ushort)

public Evidence(ByteReader reader, ushort version)

Parameters

reader ByteReader
version ushort

Evidence(string, string?, string?, bool, IModerationActor, DateTimeOffset)

public Evidence(string url, string? message, string? savedLocation, bool image, IModerationActor actor, DateTimeOffset timestamp)

Parameters

url string
message string
savedLocation string
image bool
actor IModerationActor
timestamp DateTimeOffset

Evidence(uint, string, string?, string?, bool, IModerationActor, DateTimeOffset)

public Evidence(uint id, string url, string? message, string? savedLocation, bool image, IModerationActor actor, DateTimeOffset timestamp)

Parameters

id uint
url string
message string
savedLocation string
image bool
actor IModerationActor
timestamp DateTimeOffset

Properties

Actor

[JsonPropertyName("actor")]
[JsonConverter(typeof(ActorConverter))]
public IModerationActor Actor { readonly get; set; }

Property Value

IModerationActor

Id

[JsonPropertyName("id")]
public uint Id { readonly get; set; }

Property Value

uint

Image

[JsonPropertyName("image")]
public bool Image { readonly get; set; }

Property Value

bool

Message

[JsonPropertyName("message")]
public string? Message { readonly get; set; }

Property Value

string

SavedLocation

[JsonPropertyName("saved_location")]
public string? SavedLocation { readonly get; set; }

Property Value

string

Timestamp

[JsonPropertyName("timestamp_utc")]
public DateTimeOffset Timestamp { readonly get; set; }

Property Value

DateTimeOffset

URL

[JsonPropertyName("url")]
public string URL { readonly get; set; }

Property Value

string

Methods

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Equals(Evidence)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Evidence other)

Parameters

other Evidence

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Write(ByteWriter)

public void Write(ByteWriter writer)

Parameters

writer ByteWriter

Operators

operator ==(Evidence, Evidence)

public static bool operator ==(Evidence left, Evidence right)

Parameters

left Evidence
right Evidence

Returns

bool

operator !=(Evidence, Evidence)

public static bool operator !=(Evidence left, Evidence right)

Parameters

left Evidence
right Evidence

Returns

bool