<commit_before>﻿using Tgstation.Server.Api.Models;

namespace Tgstation.Server.Host.Models
{
	/// <inheritdoc />
	public sealed class ChatChannel : Api.Models.ChatChannel
	{
		/// <summary>
		/// The row Id
		/// </summary>
		public long Id { get; set; }

		/// <summary>
		/// The <see cref="Api.Models.Internal.ChatBot.Id"/>
		/// </summary>
		public long ChatSettingsId { get; set; }

		/// <summary>
		/// The <see cref="Models.ChatBot"/>
		/// </summary>
		public ChatBot ChatSettings { get; set; }

		/// <summary>
		/// Convert the <see cref="ChatChannel"/> to it's API form
		/// </summary>
		/// <returns>A new <see cref="Api.Models.ChatChannel"/></returns>
		public Api.Models.ChatChannel ToApi() => new Api.Models.ChatChannel
		{
			DiscordChannelId = DiscordChannelId,
			IsAdminChannel = IsAdminChannel,
			IsWatchdogChannel = IsWatchdogChannel,
			IrcChannel = IrcChannel<commit_msg>Fix IsUpdatesChannel missing from ToApi()<commit_after>﻿using Tgstation.Server.Api.Models;

namespace Tgstation.Server.Host.Models
{
	/// <inheritdoc />
	public sealed class ChatChannel : Api.Models.ChatChannel
	{
		/// <summary>
		/// The row Id
		/// </summary>
		public long Id { get; set; }

		/// <summary>
		/// The <see cref="Api.Models.Internal.ChatBot.Id"/>
		/// </summary>
		public long ChatSettingsId { get; set; }

		/// <summary>
		/// The <see cref="Models.ChatBot"/>
		/// </summary>
		public ChatBot ChatSettings { get; set; }

		/// <summary>
		/// Convert the <see cref="ChatChannel"/> to it's API form
		/// </summary>
		/// <returns>A new <see cref="Api.Models.ChatChannel"/></returns>
		public Api.Models.ChatChannel ToApi() => new Api.Models.ChatChannel
		{
			DiscordChannelId = DiscordChannelId,
			IsAdminChannel = IsAdminChannel,
			IsWatchdogChannel = IsWatchdogChannel,
			IsUpdatesChannel = IsUpdatesChannel,
			IrcChannel = IrcChannel
{'fraction_non_alphanumeric': 0.158968850698174, 'fraction_numerical': 0.0, 'mean_word_length': 3.0945054945054946, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1208317', 'n_tokens_mistral': 656, 'n_tokens_neox': 595, 'n_words': 139}