Table of Contents

Class PlayerRecord

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

What the history knows about one player, all in one place.

public sealed class PlayerRecord
Inheritance
PlayerRecord
Inherited Members

Remarks

Times are UTC. Mutable because it is the index's own storage, not a message.

Properties

EventCount

Lines in the events file, so it can be compacted without being counted each time.

public int EventCount { get; set; }

Property Value

int

FirstSeen

public DateTime? FirstSeen { get; set; }

Property Value

DateTime?

LastEventAt

The newest event recorded for this player.

public DateTime? LastEventAt { get; set; }

Property Value

DateTime?

LastJoin

public DateTime? LastJoin { get; set; }

Property Value

DateTime?

LastLeave

public DateTime? LastLeave { get; set; }

Property Value

DateTime?

LastSeen

The last time this player was seen: leaving, joining, or doing anything at all.

[JsonIgnore]
public DateTime? LastSeen { get; }

Property Value

DateTime?

Messages

public int Messages { get; set; }

Property Value

int

Name

public string Name { get; set; }

Property Value

string

OpenSince

When the session in progress started; null when the player is not on the server.

public DateTime? OpenSince { get; set; }

Property Value

DateTime?

SecondsPlayed

public long SecondsPlayed { get; set; }

Property Value

long

Sessions

public int Sessions { get; set; }

Property Value

int

Uuid

public string? Uuid { get; set; }

Property Value

string

Methods

Copy()

public PlayerRecord Copy()

Returns

PlayerRecord