aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.TFS/Email.cs
blob: 547218161a0fdb415c16d8b41f5ab7c423d91ace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.TFS
{
    /// <summary>
    /// Represents a simple email.
    /// </summary>
    public class Email
    {
        /// <summary>
        /// Gets or sets the subject.
        /// </summary>
        public String Subject { get; set; }

        /// <summary>
        /// Gets or sets the body.
        /// </summary>
        public String Body { get; set; }

        /// <summary>
        /// Gets or sets whether the body is HTML text.
        /// </summary>
        public bool IsBodyHTML { get; set; }

        /// <summary>
        /// Gets or sets the sender member.
        /// </summary>
        public TeamMember From { get; set; }

        /// <summary>
        /// Gets or sets the recipient members.
        /// </summary>
        public List<TeamMember> To { get; set; }

        /// <summary>
        /// Gets or sets the optional attachments.
        /// </summary>
        public List<Attachment> Attachments { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="Email"/> class.
        /// </summary>
        public Email()
        {
            To = new List<TeamMember>();
            Attachments = new List<Attachment>();
        }
    }
}