Skip to content

Commit ea540a4

Browse files
Merge pull request #293 from sendgrid/owre-master
Fixing merge conflicts with #275
2 parents ac88fdb + da840ea commit ea540a4

File tree

2 files changed

+209
-32
lines changed

2 files changed

+209
-32
lines changed

SendGrid/SendGrid/Helpers/Mail/Mail.cs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class Mail
1919
private Dictionary<String, String> sections;
2020
private List<String> categories;
2121
private Dictionary<String, String> customArgs;
22-
private long sendAt;
22+
private long? sendAt;
2323
private ASM asm;
2424
private String batchId;
2525
private String setIpPoolId;
@@ -183,7 +183,7 @@ public Dictionary<string, string> CustomArgs
183183
}
184184

185185
[JsonProperty(PropertyName = "send_at")]
186-
public long SendAt
186+
public long? SendAt
187187
{
188188
get
189189
{
@@ -347,18 +347,18 @@ public String Get()
347347
{
348348
return JsonConvert.SerializeObject(this,
349349
Formatting.None,
350-
new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.Ignore, StringEscapeHandling = StringEscapeHandling.EscapeHtml });
350+
new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore, DefaultValueHandling = DefaultValueHandling.Include, StringEscapeHandling = StringEscapeHandling.EscapeHtml });
351351
}
352352
}
353353

354354

355355
public class ClickTracking
356356
{
357-
private bool enable;
358-
private bool enableText;
357+
private bool? enable;
358+
private bool? enableText;
359359

360360
[JsonProperty(PropertyName = "enable")]
361-
public bool Enable
361+
public bool? Enable
362362
{
363363
get
364364
{
@@ -372,7 +372,7 @@ public bool Enable
372372
}
373373

374374
[JsonProperty(PropertyName = "enable_text")]
375-
public bool EnableText
375+
public bool? EnableText
376376
{
377377
get
378378
{
@@ -389,11 +389,11 @@ public bool EnableText
389389

390390
public class OpenTracking
391391
{
392-
private bool enable;
392+
private bool? enable;
393393
private String substitutionTag;
394394

395395
[JsonProperty(PropertyName = "enable")]
396-
public bool Enable
396+
public bool? Enable
397397
{
398398
get
399399
{
@@ -424,13 +424,13 @@ public string SubstitutionTag
424424

425425
public class SubscriptionTracking
426426
{
427-
private bool enable;
427+
private bool? enable;
428428
private String text;
429429
private String html;
430430
private String substitutionTag;
431431

432432
[JsonProperty(PropertyName = "enable")]
433-
public bool Enable
433+
public bool? Enable
434434
{
435435
get
436436
{
@@ -489,15 +489,15 @@ public string SubstitutionTag
489489

490490
public class Ganalytics
491491
{
492-
private bool enable;
492+
private bool? enable;
493493
private String utmSource;
494494
private String utmMedium;
495495
private String utmTerm;
496496
private String utmContent;
497497
private String utmCampaign;
498498

499499
[JsonProperty(PropertyName = "enable")]
500-
public bool Enable
500+
public bool? Enable
501501
{
502502
get
503503
{
@@ -649,11 +649,11 @@ public Ganalytics Ganalytics
649649

650650
public class BCCSettings
651651
{
652-
private bool enable;
652+
private bool? enable;
653653
private String email;
654654

655655
[JsonProperty(PropertyName = "enable")]
656-
public bool Enable
656+
public bool? Enable
657657
{
658658
get
659659
{
@@ -684,10 +684,10 @@ public string Email
684684

685685
public class BypassListManagement
686686
{
687-
private bool enable;
687+
private bool? enable;
688688

689689
[JsonProperty(PropertyName = "enable")]
690-
public bool Enable
690+
public bool? Enable
691691
{
692692
get
693693
{
@@ -704,12 +704,12 @@ public bool Enable
704704

705705
public class FooterSettings
706706
{
707-
private bool enable;
707+
private bool? enable;
708708
private String text;
709709
private String html;
710710

711711
[JsonProperty(PropertyName = "enable")]
712-
public bool Enable
712+
public bool? Enable
713713
{
714714
get
715715
{
@@ -754,10 +754,10 @@ public string Html
754754

755755
public class SandboxMode
756756
{
757-
private bool enable;
757+
private bool? enable;
758758

759759
[JsonProperty(PropertyName = "enable")]
760-
public bool Enable
760+
public bool? Enable
761761
{
762762
get
763763
{
@@ -774,12 +774,12 @@ public bool Enable
774774

775775
public class SpamCheck
776776
{
777-
private bool enable;
778-
private int threshold;
777+
private bool? enable;
778+
private int? threshold;
779779
private String postToUrl;
780780

781781
[JsonProperty(PropertyName = "enable")]
782-
public bool Enable
782+
public bool? Enable
783783
{
784784
get
785785
{
@@ -793,7 +793,7 @@ public bool Enable
793793
}
794794

795795
[JsonProperty(PropertyName = "threshold")]
796-
public int Threshold
796+
public int? Threshold
797797
{
798798
get
799799
{
@@ -904,11 +904,11 @@ public SpamCheck SpamCheck
904904

905905
public class ASM
906906
{
907-
private int groupId;
907+
private int? groupId;
908908
private List<int> groupsToDisplay;
909909

910910
[JsonProperty(PropertyName = "group_id")]
911-
public int GroupId
911+
public int? GroupId
912912
{
913913
get
914914
{
@@ -1118,7 +1118,7 @@ public class Personalization
11181118
private Dictionary<String, String> headers;
11191119
private Dictionary<String, String> substitutions;
11201120
private Dictionary<String, String> customArgs;
1121-
private long sendAt;
1121+
private long? sendAt;
11221122

11231123
[JsonProperty(PropertyName = "to")]
11241124
public List<Email> Tos
@@ -1219,7 +1219,7 @@ public Dictionary<string, string> CustomArgs
12191219
}
12201220

12211221
[JsonProperty(PropertyName = "send_at")]
1222-
public long SendAt
1222+
public long? SendAt
12231223
{
12241224
get
12251225
{

0 commit comments

Comments
 (0)