tgstation-server 5.12.7
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ChatUser.cs
Go to the documentation of this file.
1using System;
2using System.Globalization;
3
4using Newtonsoft.Json;
5
7{
11 public sealed class ChatUser
12 {
16 public string Id { get; set; }
17
21 [JsonIgnore]
22 public ulong RealId
23 {
24 get => UInt64.Parse(Id, CultureInfo.InvariantCulture);
25 set => Id = value.ToString(CultureInfo.InvariantCulture);
26 }
27
31 public string FriendlyName { get; set; }
32
36 public string Mention { get; set; }
37
41 public ChannelRepresentation Channel { get; set; }
42 }
43}
Represents a tgs_chat_user datum.
Definition: ChatUser.cs:12
string Id
Backing field for RealId. Represented as a string to avoid BYOND percision loss.
Definition: ChatUser.cs:16
string Mention
The text to mention the user.
Definition: ChatUser.cs:36
string FriendlyName
The friendly name of the user.
Definition: ChatUser.cs:31
ulong RealId
The internal user id.
Definition: ChatUser.cs:23
ChannelRepresentation Channel
The ChannelRepresentation the user spoke from.
Definition: ChatUser.cs:41