tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ChannelMapping.cs
Go to the documentation of this file.
1using System;
2
4{
8 sealed class ChannelMapping
9 {
13 public long ProviderId { get; set; }
14
18 public ulong ProviderChannelId { get; set; }
19
23 public bool IsWatchdogChannel { get; set; }
24
28 public bool IsUpdatesChannel { get; set; }
29
33 public bool IsAdminChannel { get; set; }
34
38 public bool IsSystemChannel { get; set; }
39
44
50 {
51 Channel = channel ?? throw new ArgumentNullException(nameof(channel));
52 }
53 }
54}
Represents a mapping of a ChannelRepresentation.RealId.
ChannelMapping(ChannelRepresentation channel)
Initializes a new instance of the ChannelMapping class.
bool IsAdminChannel
If the Channel is an admin channel.
ChannelRepresentation Channel
The ChannelRepresentation with the mapped Id.
bool IsUpdatesChannel
If the Channel is an updates channel.
long ProviderId
The Id of the Providers.IProvider.
bool IsSystemChannel
If the Channel is a system messages channel.
bool IsWatchdogChannel
If Channel is a watchdog channel.
ulong ProviderChannelId
The original ChannelRepresentation.RealId.