Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Us1882 #1

Merged
merged 2 commits into from
Jan 7, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified SendGrid/SendGrid.suo
Binary file not shown.
56 changes: 56 additions & 0 deletions SendGrid/SendGrid/Header.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;

namespace SendGrid
{
public class Header : IHeader
{
public void AddTo(IEnumerable<string> recipients)
{
throw new NotImplementedException();
}

public void AddSubVal(string tag, IEnumerable<string> substitutions)
{
throw new NotImplementedException();
}

public void AddUniqueIdentifier(IDictionary<string, string> identifiers)
{
throw new NotImplementedException();
}

public void SetCategory(string category)
{
throw new NotImplementedException();
}

public void Enable(string filter)
{
throw new NotImplementedException();
}

public void Disable(string filter)
{
throw new NotImplementedException();
}

public void AddFilterSetting(string filter, IEnumerable<string> settings, string value)
{
throw new NotImplementedException();
}

public void AddHeader(MailMessage mime)
{
throw new NotImplementedException();
}

public void AsJson()
{
throw new NotImplementedException();
}
}
}
4 changes: 1 addition & 3 deletions SendGrid/SendGrid/ISendGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public interface ISendGrid
String Cc { get; set; }
String Bcc { get; set; }
String Subject { get; set; }
String Headers { get; set; }
IHeader Header { get; set; }
String Html { get; set; }
String Text { get; set; }
String Transport { get; set; }
Expand Down Expand Up @@ -59,8 +59,6 @@ public interface ISendGrid
#endregion

#region SMTP API Functions
IHeader Header();

void DisableGravatar();
void DisableOpenTracking();
void DisableClickTracking();
Expand Down
2 changes: 2 additions & 0 deletions SendGrid/SendGrid/Mail.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Header.cs" />
<Compile Include="IHeader.cs" />
<Compile Include="ISendGrid.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SendGrid.cs" />
<Compile Include="Transport\ITransport.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
301 changes: 301 additions & 0 deletions SendGrid/SendGrid/SendGrid.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,301 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;

namespace SendGrid
{
public class SendGrid : ISendGrid
{
public SendGrid(IHeader header)
{
throw new NotImplementedException();
}

public string From
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public string To
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public string Cc
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public string Bcc
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public string Subject
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public IHeader Header
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public string Html
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public string Text
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public string Transport
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public string Date
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

public MailMessage CreateMimeMessage()
{
throw new NotImplementedException();
}

public void AddTo(string address)
{
throw new NotImplementedException();
}

public void AddTo(IEnumerable<string> addresses)
{
throw new NotImplementedException();
}

public void AddTo(IDictionary<string, string> addresssInfo)
{
throw new NotImplementedException();
}

public void AddTo(IEnumerable<IDictionary<string, string>> addressesInfo)
{
throw new NotImplementedException();
}

public void AddCc(string address)
{
throw new NotImplementedException();
}

public void AddCc(IEnumerable<string> addresses)
{
throw new NotImplementedException();
}

public void AddCc(IDictionary<string, string> addresssInfo)
{
throw new NotImplementedException();
}

public void AddCc(IEnumerable<IDictionary<string, string>> addressesInfo)
{
throw new NotImplementedException();
}

public void AddBcc(string address)
{
throw new NotImplementedException();
}

public void AddBcc(IEnumerable<string> addresses)
{
throw new NotImplementedException();
}

public void AddBcc(IDictionary<string, string> addresssInfo)
{
throw new NotImplementedException();
}

public void AddBcc(IEnumerable<IDictionary<string, string>> addressesInfo)
{
throw new NotImplementedException();
}

public void AddRcpts(string address)
{
throw new NotImplementedException();
}

public void AddRcpts(IEnumerable<string> addresses)
{
throw new NotImplementedException();
}

public void AddRcpts(IDictionary<string, string> addresssInfo)
{
throw new NotImplementedException();
}

public void AddRcpts(IEnumerable<IDictionary<string, string>> addressesInfo)
{
throw new NotImplementedException();
}

public void AddSubVal(string tag, string value)
{
throw new NotImplementedException();
}

public void AddAttachment(string filePath)
{
throw new NotImplementedException();
}

public void AddAttachment(Attachment attachment)
{
throw new NotImplementedException();
}

public string GetMailFrom()
{
throw new NotImplementedException();
}

public IEnumerable<string> GetRecipients()
{
throw new NotImplementedException();
}

public string Get(string field)
{
throw new NotImplementedException();
}

public void Set(string field, string value)
{
throw new NotImplementedException();
}

public void DisableGravatar()
{
throw new NotImplementedException();
}

public void DisableOpenTracking()
{
throw new NotImplementedException();
}

public void DisableClickTracking()
{
throw new NotImplementedException();
}

public void DisableSpamCheck()
{
throw new NotImplementedException();
}

public void DisableUnsubscribe()
{
throw new NotImplementedException();
}

public void DisableFooter()
{
throw new NotImplementedException();
}

public void DisableGoogleAnalytics()
{
throw new NotImplementedException();
}

public void DisableTemplate()
{
throw new NotImplementedException();
}

public void DisableBcc()
{
throw new NotImplementedException();
}

public void DisableBipassListManaement()
{
throw new NotImplementedException();
}

public void EnableGravatar()
{
throw new NotImplementedException();
}

public void EnableOpenTracking()
{
throw new NotImplementedException();
}

public void EnableClickTracking(string text = null)
{
throw new NotImplementedException();
}

public void EnableSpamCheck(int score = 5, string url = null)
{
throw new NotImplementedException();
}

public void EnableUnsubscribe(string text, string html, string replace, string url, string landing)
{
throw new NotImplementedException();
}

public void EnableFooter(string text = null, string html = null)
{
throw new NotImplementedException();
}

public void EnableGoogleAnalytics(string source, string medium, string term, string content = null, string campaign = null)
{
throw new NotImplementedException();
}

public void EnableTemplate(string html = null)
{
throw new NotImplementedException();
}

public void EnableBcc(string email = null)
{
throw new NotImplementedException();
}

public void EnableBipassListManaement()
{
throw new NotImplementedException();
}

public void Mail()
{
throw new NotImplementedException();
}
}
}
7 changes: 1 addition & 6 deletions SendGrid/SendGrid/Transport/ITransport.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SendGrid.Transport
namespace SendGrid.Transport
{
public interface ITransport
{
Expand Down
Loading