Ignore:
Timestamp:
Nov 9, 2021, 6:28:33 PM (3 years ago)
Author:
alloc
Message:

Preparations for A20 release
Changes usage of "SteamID" to "UserID" in console commands
Also changes a bunch of the WebAPI stuff to show / use UserIDs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/Web/WebConnection.cs

    r332 r369  
    1111                private readonly string conDescription;
    1212
    13                 public WebConnection (string _sessionId, IPAddress _endpoint, ulong _steamId) {
     13                public WebConnection (string _sessionId, IPAddress _endpoint, PlatformUserIdentifierAbs _userId) {
    1414                        SessionID = _sessionId;
    1515                        Endpoint = _endpoint;
    16                         SteamID = _steamId;
     16                        UserId = _userId;
    1717                        login = DateTime.Now;
    1818                        lastAction = login;
     
    2020                }
    2121
    22                 public string SessionID { get; private set; }
     22                public string SessionID { get; }
    2323
    24                 public IPAddress Endpoint { get; private set; }
     24                public IPAddress Endpoint { get; }
    2525
    26                 public ulong SteamID { get; private set; }
     26                public PlatformUserIdentifierAbs UserId { get; }
    2727
    28                 public TimeSpan Age {
    29                         get { return DateTime.Now - lastAction; }
    30                 }
     28                public TimeSpan Age => DateTime.Now - lastAction;
    3129
    3230                public static bool CanViewAllPlayers (int _permissionLevel) {
     
    5452                }
    5553
    56                 public override void SendLog (string _msg, string _trace, LogType _type) {
     54                public override void SendLog (string _formattedMsg, string _plainMsg, string _trace, LogType _type, DateTime _timestamp, long _uptime) {
    5755                        // Do nothing, handled by LogBuffer
    5856                }
Note: See TracChangeset for help on using the changeset viewer.