2using System.ComponentModel.DataAnnotations;
20 [Range(1, UInt32.MaxValue)]
58 _ =>
throw new InvalidOperationException(
"Invalid Provider!"),
ChatConnectionStringBuilder for ChatProvider.Discord.
Manage the server chat bots.
ushort? ChannelLimit
The maximum number of ChatChannels the ChatBotSettings may contain.
bool? Enabled
If the connection is enabled.
string? ConnectionString
The information used to connect to the Provider.
ChatProvider? Provider
The ChatProvider used for the connection.
uint? ReconnectionInterval
The time interval in minutes the chat bot attempts to reconnect if Enabled and disconnected....
void SetConnectionStringBuilder(ChatConnectionStringBuilder stringBuilder)
Set the ChatConnectionStringBuilder for the ChatBotSettings. Also updates the ConnectionString.
ChatConnectionStringBuilder? CreateConnectionStringBuilder()
Get the ChatConnectionStringBuilder which maps to the ConnectionString.
Helper for building ChatBotSettings.ConnectionStrings.
override string ToString()
Gets the ChatBotSettings.ConnectionString associated with the ChatConnectionStringBuilder.
ChatConnectionStringBuilder for ChatProvider.Irc.
Sanity limits to prevent users from overloading.
const int MaximumStringLength
Length limit for strings in fields.
Base class for named entities.
FieldPresence
Indicates whether a request field is Required or Ignored.
ChatProvider
Represents a chat service provider.
@ Required
DMAPI validation must suceed for the deployment to succeed.