Skip to content

Commit

Permalink
Merge pull request #246 from dubrovkinmaxim/Code-Simplification
Browse files Browse the repository at this point in the history
Code simplification
  • Loading branch information
thinkingserious authored Sep 27, 2016
2 parents 52e690c + bd4429e commit 5daa42b
Show file tree
Hide file tree
Showing 23 changed files with 4,903 additions and 5,716 deletions.
Empty file modified SendGrid/.ci/tests.sh
100755 → 100644
Empty file.
802 changes: 401 additions & 401 deletions SendGrid/Example/Example.cs

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions SendGrid/SendGrid/Helpers/Mail/ASM.cs
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; }
}
}
22 changes: 22 additions & 0 deletions SendGrid/SendGrid/Helpers/Mail/Attachment.cs
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; }
}
}
13 changes: 13 additions & 0 deletions SendGrid/SendGrid/Helpers/Mail/BCCSettings.cs
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; }
}
}
10 changes: 10 additions & 0 deletions SendGrid/SendGrid/Helpers/Mail/BypassListManagement.cs
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; }
}
}
13 changes: 13 additions & 0 deletions SendGrid/SendGrid/Helpers/Mail/ClickTracking.cs
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; }
}
}
23 changes: 23 additions & 0 deletions SendGrid/SendGrid/Helpers/Mail/Content.cs
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; }
}
}
23 changes: 23 additions & 0 deletions SendGrid/SendGrid/Helpers/Mail/Email.cs
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; }
}
}
16 changes: 16 additions & 0 deletions SendGrid/SendGrid/Helpers/Mail/FooterSettings.cs
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; }
}
}
25 changes: 25 additions & 0 deletions SendGrid/SendGrid/Helpers/Mail/Ganalytics.cs
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; }
}
}
Loading

0 comments on commit 5daa42b

Please sign in to comment.