summaryrefslogtreecommitdiffstats
path: root/src/SendGrid/Helpers/Mail/Model/EmailAddress.cs
blob: e1ba31935409c0eabf3842dc916c0a1fcddfe881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using Newtonsoft.Json;

namespace SendGrid.Helpers.Mail
{
    public class EmailAddress
    {
        public EmailAddress()
        {
        }

        public EmailAddress(string email, string name = null)
        {
            this.Email = email;
            this.Name = name;
        }

        [JsonProperty(PropertyName = "name")]
        public string Name { get; set; }

        [JsonProperty(PropertyName = "email")]
        public string Email { get; set; }
    }
}