Table of Contents

Class PlayerHWID

Namespace
Uncreated.Warfare.Moderation
Assembly
Uncreated.Warfare.dll
[Table("hwids")]
[Index(new string[] { "HWID" })]
public class PlayerHWID
Inheritance
PlayerHWID
Inherited Members

Constructors

PlayerHWID()

public PlayerHWID()

PlayerHWID(uint, int, ulong, HWID, int, DateTimeOffset?, DateTimeOffset)

public PlayerHWID(uint id, int index, ulong steam64, HWID hwid, int loginCount, DateTimeOffset? firstLogin, DateTimeOffset lastLogin)

Parameters

id uint
index int
steam64 ulong
hwid HWID
loginCount int
firstLogin DateTimeOffset?
lastLogin DateTimeOffset

Properties

FirstLogin

[JsonPropertyName("first_login")]
[Column("FirstLogin")]
public DateTimeOffset? FirstLogin { get; set; }

Property Value

DateTimeOffset?

HWID

[JsonPropertyName("hwid")]
[Column("HWID")]
public HWID HWID { get; set; }

Property Value

HWID

Id

[Key]
[JsonPropertyName("id")]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Column("Id")]
public uint Id { get; set; }

Property Value

uint

Index

[JsonPropertyName("index")]
[Column("Index")]
public int Index { get; set; }

Property Value

int

LastLogin

[JsonPropertyName("last_login")]
[Column("LastLogin")]
public DateTimeOffset LastLogin { get; set; }

Property Value

DateTimeOffset

LoginCount

[JsonPropertyName("login_count")]
[Column("LoginCount")]
public int LoginCount { get; set; }

Property Value

int

PlayerData

public WarfareUserData PlayerData { get; set; }

Property Value

WarfareUserData

Steam64

[Required]
[JsonPropertyName("steam64")]
[ForeignKey("PlayerData")]
[Column("Steam64")]
public ulong Steam64 { get; set; }

Property Value

ulong

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.