summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon West <brawest@gmail.com>2013-01-14 11:34:22 -0700
committerBrandon West <brawest@gmail.com>2013-01-14 11:34:22 -0700
commit3a948747213aea2adeccacd0c6fa6e66c0437e73 (patch)
tree47cd36a2fa38681f300a0a7b729d40dbb07c59b7
parent6fe8efcba2ec7db9bd8e290d5cf1f45c0ec670b4 (diff)
downloadsendgrid-csharp-3a948747213aea2adeccacd0c6fa6e66c0437e73.zip
sendgrid-csharp-3a948747213aea2adeccacd0c6fa6e66c0437e73.tar.gz
sendgrid-csharp-3a948747213aea2adeccacd0c6fa6e66c0437e73.tar.bz2
fix build warnings
-rwxr-xr-xSendGrid/Example/Program.cs1
-rwxr-xr-xSendGrid/Example/SMTPAPI.cs1
-rwxr-xr-xSendGrid/Example/WEBAPI.cs1
-rw-r--r--SendGrid/SendGridMail/Transport/Web.cs5
4 files changed, 1 insertions, 7 deletions
diff --git a/SendGrid/Example/Program.cs b/SendGrid/Example/Program.cs
index 1debf2e..29b02e6 100755
--- a/SendGrid/Example/Program.cs
+++ b/SendGrid/Example/Program.cs
@@ -30,6 +30,7 @@ namespace Example
//use this section to test out our Web and SMTP examples!
smtpapi.SimpleHTMLEmail();
+ restapi.SimpleHTMLEmail();
Console.WriteLine("Done!");
Console.ReadLine();
diff --git a/SendGrid/Example/SMTPAPI.cs b/SendGrid/Example/SMTPAPI.cs
index d9ab154..28120d3 100755
--- a/SendGrid/Example/SMTPAPI.cs
+++ b/SendGrid/Example/SMTPAPI.cs
@@ -246,7 +246,6 @@ namespace Example
message.From = new MailAddress(_from);
//set the message body
- var timestamp = DateTime.Now.ToString("HH:mm:ss tt");
message.Html = "This is the HTML body";
message.Text = "This is the plain text body";
diff --git a/SendGrid/Example/WEBAPI.cs b/SendGrid/Example/WEBAPI.cs
index 985005d..d3f8d4a 100755
--- a/SendGrid/Example/WEBAPI.cs
+++ b/SendGrid/Example/WEBAPI.cs
@@ -247,7 +247,6 @@ namespace Example
message.From = new MailAddress(_from);
//set the message body
- var timestamp = DateTime.Now.ToString("HH:mm:ss tt");
message.Html = "This is the HTML body";
message.Text = "This is the plain text body";
diff --git a/SendGrid/SendGridMail/Transport/Web.cs b/SendGrid/SendGridMail/Transport/Web.cs
index 3395bdd..ebb2982 100644
--- a/SendGrid/SendGridMail/Transport/Web.cs
+++ b/SendGrid/SendGridMail/Transport/Web.cs
@@ -19,8 +19,6 @@ namespace SendGridMail.Transport
public const String XmlFormat = "xml";
private readonly NetworkCredential _credentials;
- private readonly String _restEndpoint;
- private readonly String _format;
#endregion
/// <summary>
@@ -42,9 +40,6 @@ namespace SendGridMail.Transport
internal Web(NetworkCredential credentials, String url = Endpoint)
{
_credentials = credentials;
-
- _format = XmlFormat;
- _restEndpoint = url + "." + _format;
}
/// <summary>