diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-12-12 23:58:19 -0800 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-12-12 23:58:19 -0800 |
commit | 83a0891c8917d06031571015e24c1acf88ac4ae2 (patch) | |
tree | 7b7f015a1c4f8a587624ada56a0af7746ef0a882 /src/SendGrid/Helpers/Mail/Model/Personalization.cs | |
parent | ff603f56e723d3e49c453cfdfe8dcf05617b6b50 (diff) | |
download | sendgrid-csharp-origin/single-email.zip sendgrid-csharp-origin/single-email.tar.gz sendgrid-csharp-origin/single-email.tar.bz2 |
Properties FTW, Cancellation Tokens, Reorganizeorigin/single-email
Based on feedback from @darrelmiller and @jkewley on issue #331 and
@taspeotis on issue 317. See ExampleCore for working example.
Diffstat (limited to 'src/SendGrid/Helpers/Mail/Model/Personalization.cs')
-rw-r--r-- | src/SendGrid/Helpers/Mail/Model/Personalization.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/SendGrid/Helpers/Mail/Model/Personalization.cs b/src/SendGrid/Helpers/Mail/Model/Personalization.cs new file mode 100644 index 0000000..54a3506 --- /dev/null +++ b/src/SendGrid/Helpers/Mail/Model/Personalization.cs @@ -0,0 +1,32 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace SendGrid.Helpers.Mail +{ + public class Personalization + { + [JsonProperty(PropertyName = "to")] + public List<EmailAddress> Tos { get; set; } + + [JsonProperty(PropertyName = "cc")] + public List<EmailAddress> Ccs { get; set; } + + [JsonProperty(PropertyName = "bcc")] + public List<EmailAddress> Bccs { get; set; } + + [JsonProperty(PropertyName = "subject")] + public string Subject { get; set; } + + [JsonProperty(PropertyName = "headers")] + public Dictionary<string, string> Headers { get; set; } + + [JsonProperty(PropertyName = "substitutions")] + public Dictionary<string, string> Substitutions { get; set; } + + [JsonProperty(PropertyName = "custom_args")] + public Dictionary<string, string> CustomArgs { get; set; } + + [JsonProperty(PropertyName = "send_at")] + public long? SendAt { get; set; } + } +}
\ No newline at end of file |