Class SessionRecord
- Namespace
- Uncreated.Warfare.Models.GameData
- Assembly
- Uncreated.Warfare.dll
[Table("stats_sessions")]
public class SessionRecord
- Inheritance
-
SessionRecord
- Inherited Members
-
Properties
EndedTimestamp
[Column("EndedTimestampUTC")]
public DateTimeOffset? EndedTimestamp { get; set; }
Property Value
- DateTimeOffset?
Faction
public Faction? Faction { get; set; }
Property Value
- Faction
FactionId
[ForeignKey("Faction")]
[Column("Faction")]
public uint? FactionId { get; set; }
Property Value
- uint?
FinishedGame
public bool FinishedGame { get; set; }
Property Value
- bool
Game
[Required]
public GameRecord Game { get; set; }
Property Value
- GameRecord
GameId
[Required]
[ForeignKey("Game")]
[Column("Game")]
public ulong GameId { get; set; }
Property Value
- ulong
Kit
public KitModel? Kit { get; set; }
Property Value
- KitModel
KitId
[ForeignKey("Kit")]
[Column("Kit")]
public uint? KitId { get; set; }
Property Value
- uint?
KitName
[StringLength(25)]
public string? KitName { get; set; }
Property Value
- string
LengthSeconds
public double LengthSeconds { get; set; }
Property Value
- double
Map
[Required]
public MapData Map { get; set; }
Property Value
- MapData
MapId
[Required]
[ForeignKey("Map")]
[Column("Map")]
public int MapId { get; set; }
Property Value
- int
NextSession
public SessionRecord? NextSession { get; set; }
Property Value
- SessionRecord
NextSessionId
[ForeignKey("NextSession")]
[Column("NextSession")]
public ulong? NextSessionId { get; set; }
Property Value
- ulong?
PlayerData
[Required]
public WarfareUserData PlayerData { get; set; }
Property Value
- WarfareUserData
PreviousSession
public SessionRecord? PreviousSession { get; set; }
Property Value
- SessionRecord
PreviousSessionId
[ForeignKey("PreviousSession")]
[Column("PreviousSession")]
public ulong? PreviousSessionId { get; set; }
Property Value
- ulong?
Season
[Required]
public SeasonData Season { get; set; }
Property Value
- SeasonData
SeasonId
[Required]
[ForeignKey("Season")]
[Column("Season")]
public int SeasonId { get; set; }
Property Value
- int
SessionId
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public ulong SessionId { get; set; }
Property Value
- ulong
SquadLeader
[ForeignKey("SquadLeaderData")]
[Column("SquadLeader")]
public ulong? SquadLeader { get; set; }
Property Value
- ulong?
SquadLeaderData
public WarfareUserData? SquadLeaderData { get; set; }
Property Value
- WarfareUserData
SquadName
[Column("SquadName")]
[StringLength(32)]
public string? SquadName { get; set; }
Property Value
- string
StartedGame
public bool StartedGame { get; set; }
Property Value
- bool
StartedTimestamp
[Column("StartedTimestampUTC")]
public DateTimeOffset StartedTimestamp { get; set; }
Property Value
- DateTimeOffset
Steam64
[Required]
[ForeignKey("PlayerData")]
[Column("Steam64")]
public ulong Steam64 { get; set; }
Property Value
- ulong
Team
public int Team { get; set; }
Property Value
- int
UnexpectedTermination
public bool UnexpectedTermination { get; set; }
Property Value
- bool
Methods
MarkDirty()