tgstation-server  4.3.2
The /tg/station 13 server suite
ChannelRepresentation.cs
Go to the documentation of this file.
1 using Newtonsoft.Json;
2 using System;
3 using System.Globalization;
4 
5 namespace Tgstation.Server.Host.Components.Chat
6 {
11  public sealed class ChannelRepresentation
12  {
16  public string Id { get; set; }
17 
22  [JsonIgnore]
23  public ulong RealId
24  {
25  get => UInt64.Parse(Id, CultureInfo.InvariantCulture);
26  set => Id = value.ToString(CultureInfo.InvariantCulture);
27  }
28 
32  public string FriendlyName { get; set; }
33 
37  public string ConnectionName { get; set; }
38 
42  public bool IsAdminChannel { get; set; }
43 
47  public bool IsPrivateChannel { get; set; }
48 
52  public string Tag { get; set; }
53  }
54 }