-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from dubrovkinmaxim/Code-Simplification
Code simplification
- Loading branch information
Showing
23 changed files
with
4,903 additions
and
5,716 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace SendGrid.Helpers.Mail | ||
{ | ||
public class ASM | ||
{ | ||
[JsonProperty(PropertyName = "group_id")] | ||
public int GroupId { get; set; } | ||
|
||
[JsonProperty(PropertyName = "groups_to_display")] | ||
public List<int> GroupsToDisplay { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace SendGrid.Helpers.Mail | ||
{ | ||
public class Attachment | ||
{ | ||
[JsonProperty(PropertyName = "content")] | ||
public string Content { get; set; } | ||
|
||
[JsonProperty(PropertyName = "type")] | ||
public string Type { get; set; } | ||
|
||
[JsonProperty(PropertyName = "filename")] | ||
public string Filename { get; set; } | ||
|
||
[JsonProperty(PropertyName = "disposition")] | ||
public string Disposition { get; set; } | ||
|
||
[JsonProperty(PropertyName = "content_id")] | ||
public string ContentId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace SendGrid.Helpers.Mail | ||
{ | ||
public class BCCSettings | ||
{ | ||
[JsonProperty(PropertyName = "enable")] | ||
public bool? Enable { get; set; } | ||
|
||
[JsonProperty(PropertyName = "email")] | ||
public string Email { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace SendGrid.Helpers.Mail | ||
{ | ||
public class BypassListManagement | ||
{ | ||
[JsonProperty(PropertyName = "enable")] | ||
public bool Enable { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace SendGrid.Helpers.Mail | ||
{ | ||
public class ClickTracking | ||
{ | ||
[JsonProperty(PropertyName = "enable")] | ||
public bool? Enable { get; set; } | ||
|
||
[JsonProperty(PropertyName = "enable_text")] | ||
public bool? EnableText { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace SendGrid.Helpers.Mail | ||
{ | ||
public class Email | ||
{ | ||
public Email() | ||
{ | ||
} | ||
|
||
public Email(string email, string name = null) | ||
{ | ||
this.Address = email; | ||
this.Name = name; | ||
} | ||
|
||
[JsonProperty(PropertyName = "name")] | ||
public string Name { get; set; } | ||
|
||
[JsonProperty(PropertyName = "email")] | ||
public string Address { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace SendGrid.Helpers.Mail | ||
{ | ||
public class FooterSettings | ||
{ | ||
[JsonProperty(PropertyName = "enable")] | ||
public bool Enable { get; set; } | ||
|
||
[JsonProperty(PropertyName = "text")] | ||
public string Text { get; set; } | ||
|
||
[JsonProperty(PropertyName = "html")] | ||
public string Html { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace SendGrid.Helpers.Mail | ||
{ | ||
public class Ganalytics | ||
{ | ||
[JsonProperty(PropertyName = "enable")] | ||
public bool? Enable { get; set; } | ||
|
||
[JsonProperty(PropertyName = "utm_source")] | ||
public string UtmSource { get; set; } | ||
|
||
[JsonProperty(PropertyName = "utm_medium")] | ||
public string UtmMedium { get; set; } | ||
|
||
[JsonProperty(PropertyName = "utm_term")] | ||
public string UtmTerm { get; set; } | ||
|
||
[JsonProperty(PropertyName = "utm_content")] | ||
public string UtmContent { get; set; } | ||
|
||
[JsonProperty(PropertyName = "utm_campaign")] | ||
public string UtmCampaign { get; set; } | ||
} | ||
} |
Oops, something went wrong.