blob: 0f051567172fd2cc84683382bfa887faf384b753 (
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
|
using Newtonsoft.Json;
namespace SendGrid.Helpers.Mail
{
public class Content
{
public Content()
{
}
public Content(string type, string value)
{
this.Type = type;
this.Value = value;
}
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
[JsonProperty(PropertyName = "value")]
public string Value { get; set; }
}
public class PlainTextContent : Content
{
public PlainTextContent(string value)
{
this.Type = MimeType.Text;
this.Value = value;
}
}
public class HtmlContent : Content
{
public HtmlContent(string value)
{
this.Type = MimeType.Html;
this.Value = value;
}
}
}
|