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
readerByteReaderversionushort
Evidence(string, string?, string?, bool, IModerationActor, DateTimeOffset)
public Evidence(string url, string? message, string? savedLocation, bool image, IModerationActor actor, DateTimeOffset timestamp)
Parameters
urlstringmessagestringsavedLocationstringimageboolactorIModerationActortimestampDateTimeOffset
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
iduinturlstringmessagestringsavedLocationstringimageboolactorIModerationActortimestampDateTimeOffset
Properties
Actor
[JsonPropertyName("actor")]
[JsonConverter(typeof(ActorConverter))]
public IModerationActor Actor { readonly get; set; }
Property Value
Id
[JsonPropertyName("id")]
public uint Id { readonly get; set; }
Property Value
Image
[JsonPropertyName("image")]
public bool Image { readonly get; set; }
Property Value
Message
[JsonPropertyName("message")]
public string? Message { readonly get; set; }
Property Value
SavedLocation
[JsonPropertyName("saved_location")]
public string? SavedLocation { readonly get; set; }
Property Value
Timestamp
[JsonPropertyName("timestamp_utc")]
public DateTimeOffset Timestamp { readonly get; set; }
Property Value
URL
[JsonPropertyName("url")]
public string URL { readonly get; set; }
Property Value
Methods
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
otherEvidenceAn object to compare with this object.
Returns
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
writerByteWriter
Operators
operator ==(Evidence, Evidence)
public static bool operator ==(Evidence left, Evidence right)
Parameters
Returns
operator !=(Evidence, Evidence)
public static bool operator !=(Evidence left, Evidence right)