2using System.Globalization;
17 public string Id {
get;
private set; }
26 get => UInt64.Parse(
Id, CultureInfo.InvariantCulture);
27 set =>
Id = value.ToString(CultureInfo.InvariantCulture);
53 public string?
Tag {
get;
set; }
68 ConnectionName = connectionName ??
throw new ArgumentNullException(nameof(connectionName));
69 FriendlyName = friendlyName ??
throw new ArgumentNullException(nameof(friendlyName));
Represents a Providers.IProvider channel.
string ConnectionName
The name of the connection the ChannelRepresentation belongs to.
bool IsAdminChannel
If this is considered a channel for admin commands.
ChannelRepresentation(string connectionName, string friendlyName, ulong id)
Initializes a new instance of the ChannelRepresentation class.
string FriendlyName
The user friendly name of the ChannelRepresentation.
ulong RealId
The Providers.IProvider channel Id.
string Id
Backing field for RealId. Represented as a string to avoid BYOND percision loss.
bool IsPrivateChannel
If this is a 1-to-1 chat channel.
bool EmbedsSupported
If this channel supports embeds.