<commit_before>﻿using System;
using System.Collections.Generic;

namespace CertiPay.Common.Notifications
{
    /// <summary>
    /// Represents an email notification sent a user, employee, or administrator
    /// </summary>
    public class EmailNotification : Notification
    {
        public static String QueueName { get { return "EmailNotifications"; } }

        /// <summary>
        /// Who the email notification should be FROM
        /// </summary>
        public String FromAddress { get; set; }

        /// <summary>
        /// A list of email addresses to CC
        /// </summary>
        public ICollection<String> CC { get; set; } = new List<String>();

        /// <summary>
        /// A list of email addresses to BCC
        /// </summary>
        public ICollection<String> BCC { get; set; } = new List<String>();

        /// <summary>
        /// The subject line of the email
        /// </summary>
        public String Subject { get; set; }

        /// <summary>
        /// Any attachments to the email in the form of URLs to download
        /// </summary>
        public ICollection<Attachment> Attachments { get; set; } = new List<Attachment>();

        public EmailFormat EmailType { get; set; }

        /// <summary>
        /// A file may be attached to the email notification
        /// </summary>
        public class Attachment
        {
            /// <summary>
            /// The filename of the attachment
            /// </summary>
            public String Filename { get; set; }

            /// <summary>
            /// If provided, the Base64 encoded content of the attachment
            /// </summary>
            public String Content { get; set; }

            /// <summary>
            /// If provided, an addressable URI from which the service can download the attachment
            /// </summary>
            public String Uri { get; set; }
        }

        public enum EmailFormat
        {
            HTML,
            Plain
        }
    }
}<commit_msg>added default value & summary for EmailType<commit_after>﻿using System;
using System.Collections.Generic;

namespace CertiPay.Common.Notifications
{
    /// <summary>
    /// Represents an email notification sent a user, employee, or administrator
    /// </summary>
    public class EmailNotification : Notification
    {
        public static String QueueName { get { return "EmailNotifications"; } }

        /// <summary>
        /// Who the email notification should be FROM
        /// </summary>
        public String FromAddress { get; set; }

        /// <summary>
        /// A list of email addresses to CC
        /// </summary>
        public ICollection<String> CC { get; set; } = new List<String>();

        /// <summary>
        /// A list of email addresses to BCC
        /// </summary>
        public ICollection<String> BCC { get; set; } = new List<String>();

        /// <summary>
        /// The subject line of the email
        /// </summary>
        public String Subject { get; set; }

        /// <summary>
        /// Any attachments to the email in the form of URLs to download
        /// </summary>
        public ICollection<Attachment> Attachments { get; set; } = new List<Attachment>();

        /// <summary>
        /// Set the email format type to HTML or PlainText, default is HTML.
        /// </summary>
        public EmailFormat EmailType { get; set; } = EmailFormat.HTML;

        /// <summary>
        /// A file may be attached to the email notification
        /// </summary>
        public class Attachment
        {
            /// <summary>
            /// The filename of the attachment
            /// </summary>
            public String Filename { get; set; }

            /// <summary>
            /// If provided, the Base64 encoded content of the attachment
            /// </summary>
            public String Content { get; set; }

            /// <summary>
            /// If provided, an addressable URI from which the service can download the attachment
            /// </summary>
            public String Uri { get; set; }
        }

        public enum EmailFormat
        {
            HTML,
            PlainText
        }
    }
}
{'fraction_non_alphanumeric': 0.11421800947867299, 'fraction_numerical': 0.0009478672985781991, 'mean_word_length': 1.5427710843373494, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '980806', 'n_tokens_mistral': 1036, 'n_tokens_neox': 1005, 'n_words': 382}