diff --git a/CS2-SimpleAdmin/Models/IpHistoryRow.cs b/CS2-SimpleAdmin/Models/IpHistoryRow.cs index 5c794a7..d4538bb 100644 --- a/CS2-SimpleAdmin/Models/IpHistoryRow.cs +++ b/CS2-SimpleAdmin/Models/IpHistoryRow.cs @@ -1,9 +1,14 @@ namespace CS2_SimpleAdmin.Models; -public record IpHistoryRow +public sealed class IpHistoryRow { - public long Steamid { get; init; } - public string? Name { get; init; } - public uint Address { get; init; } - public DateTime Used_at { get; init; } + public long steamid { get; set; } + public string? name { get; set; } + public long address { get; set; } + public DateTime used_at { get; set; } + + public ulong Steamid => Convert.ToUInt64(steamid); + public string? Name => name; + public uint Address => unchecked((uint)address); + public DateTime Used_at => used_at; }