2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
32 public ICollection<ChatChannel>
Channels {
get;
set; }
46 public ChatBot(ICollection<ChatChannel> channels)
48 Channels = channels ??
throw new ArgumentNullException(nameof(channels));
54 Channels =
Channels.Select(x => x.ToApi(
this.Require(x => x.Provider))).ToList(),
virtual ? long Id
The ID of the entity.
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....
virtual ? string Name
The name of the entity represented by the NamedEntity.
Represents a chat bot response.
ICollection< ChatChannel > Channels
See Api.Models.Internal.ChatBotApiBase.Channels.
ChatBot()
Initializes a new instance of the ChatBot class.
long InstanceId
The instance Api.Models.EntityId.Id.
ChatBot(ICollection< ChatChannel > channels)
Initializes a new instance of the ChatBot class.
const ushort DefaultChannelLimit
Default for Api.Models.Internal.ChatBotSettings.ChannelLimit.
Represents an Api.Models.Instance in the database.