Skip to content

Commit d9ec883

Browse files
committed
Merge pull request #1 from sendgrid/us1882
Us1882
2 parents 24ad1b3 + 86fbabd commit d9ec883

8 files changed

Lines changed: 393 additions & 9 deletions

File tree

SendGrid/SendGrid.suo

5 KB
Binary file not shown.

SendGrid/SendGrid/Header.cs

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Net.Mail;
5+
using System.Text;
6+
7+
namespace SendGrid
8+
{
9+
public class Header : IHeader
10+
{
11+
public void AddTo(IEnumerable<string> recipients)
12+
{
13+
throw new NotImplementedException();
14+
}
15+
16+
public void AddSubVal(string tag, IEnumerable<string> substitutions)
17+
{
18+
throw new NotImplementedException();
19+
}
20+
21+
public void AddUniqueIdentifier(IDictionary<string, string> identifiers)
22+
{
23+
throw new NotImplementedException();
24+
}
25+
26+
public void SetCategory(string category)
27+
{
28+
throw new NotImplementedException();
29+
}
30+
31+
public void Enable(string filter)
32+
{
33+
throw new NotImplementedException();
34+
}
35+
36+
public void Disable(string filter)
37+
{
38+
throw new NotImplementedException();
39+
}
40+
41+
public void AddFilterSetting(string filter, IEnumerable<string> settings, string value)
42+
{
43+
throw new NotImplementedException();
44+
}
45+
46+
public void AddHeader(MailMessage mime)
47+
{
48+
throw new NotImplementedException();
49+
}
50+
51+
public void AsJson()
52+
{
53+
throw new NotImplementedException();
54+
}
55+
}
56+
}

SendGrid/SendGrid/ISendGrid.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public interface ISendGrid
1414
String Cc { get; set; }
1515
String Bcc { get; set; }
1616
String Subject { get; set; }
17-
String Headers { get; set; }
17+
IHeader Header { get; set; }
1818
String Html { get; set; }
1919
String Text { get; set; }
2020
String Transport { get; set; }
@@ -59,8 +59,6 @@ public interface ISendGrid
5959
#endregion
6060

6161
#region SMTP API Functions
62-
IHeader Header();
63-
6462
void DisableGravatar();
6563
void DisableOpenTracking();
6664
void DisableClickTracking();

SendGrid/SendGrid/Mail.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@
4141
<Reference Include="System.Xml" />
4242
</ItemGroup>
4343
<ItemGroup>
44+
<Compile Include="Header.cs" />
4445
<Compile Include="IHeader.cs" />
4546
<Compile Include="ISendGrid.cs" />
4647
<Compile Include="Properties\AssemblyInfo.cs" />
48+
<Compile Include="SendGrid.cs" />
4749
<Compile Include="Transport\ITransport.cs" />
4850
</ItemGroup>
4951
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

SendGrid/SendGrid/SendGrid.cs

Lines changed: 301 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,301 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Net.Mail;
5+
using System.Text;
6+
7+
namespace SendGrid
8+
{
9+
public class SendGrid : ISendGrid
10+
{
11+
public SendGrid(IHeader header)
12+
{
13+
throw new NotImplementedException();
14+
}
15+
16+
public string From
17+
{
18+
get { throw new NotImplementedException(); }
19+
set { throw new NotImplementedException(); }
20+
}
21+
22+
public string To
23+
{
24+
get { throw new NotImplementedException(); }
25+
set { throw new NotImplementedException(); }
26+
}
27+
28+
public string Cc
29+
{
30+
get { throw new NotImplementedException(); }
31+
set { throw new NotImplementedException(); }
32+
}
33+
34+
public string Bcc
35+
{
36+
get { throw new NotImplementedException(); }
37+
set { throw new NotImplementedException(); }
38+
}
39+
40+
public string Subject
41+
{
42+
get { throw new NotImplementedException(); }
43+
set { throw new NotImplementedException(); }
44+
}
45+
46+
public IHeader Header
47+
{
48+
get { throw new NotImplementedException(); }
49+
set { throw new NotImplementedException(); }
50+
}
51+
52+
public string Html
53+
{
54+
get { throw new NotImplementedException(); }
55+
set { throw new NotImplementedException(); }
56+
}
57+
58+
public string Text
59+
{
60+
get { throw new NotImplementedException(); }
61+
set { throw new NotImplementedException(); }
62+
}
63+
64+
public string Transport
65+
{
66+
get { throw new NotImplementedException(); }
67+
set { throw new NotImplementedException(); }
68+
}
69+
70+
public string Date
71+
{
72+
get { throw new NotImplementedException(); }
73+
set { throw new NotImplementedException(); }
74+
}
75+
76+
public MailMessage CreateMimeMessage()
77+
{
78+
throw new NotImplementedException();
79+
}
80+
81+
public void AddTo(string address)
82+
{
83+
throw new NotImplementedException();
84+
}
85+
86+
public void AddTo(IEnumerable<string> addresses)
87+
{
88+
throw new NotImplementedException();
89+
}
90+
91+
public void AddTo(IDictionary<string, string> addresssInfo)
92+
{
93+
throw new NotImplementedException();
94+
}
95+
96+
public void AddTo(IEnumerable<IDictionary<string, string>> addressesInfo)
97+
{
98+
throw new NotImplementedException();
99+
}
100+
101+
public void AddCc(string address)
102+
{
103+
throw new NotImplementedException();
104+
}
105+
106+
public void AddCc(IEnumerable<string> addresses)
107+
{
108+
throw new NotImplementedException();
109+
}
110+
111+
public void AddCc(IDictionary<string, string> addresssInfo)
112+
{
113+
throw new NotImplementedException();
114+
}
115+
116+
public void AddCc(IEnumerable<IDictionary<string, string>> addressesInfo)
117+
{
118+
throw new NotImplementedException();
119+
}
120+
121+
public void AddBcc(string address)
122+
{
123+
throw new NotImplementedException();
124+
}
125+
126+
public void AddBcc(IEnumerable<string> addresses)
127+
{
128+
throw new NotImplementedException();
129+
}
130+
131+
public void AddBcc(IDictionary<string, string> addresssInfo)
132+
{
133+
throw new NotImplementedException();
134+
}
135+
136+
public void AddBcc(IEnumerable<IDictionary<string, string>> addressesInfo)
137+
{
138+
throw new NotImplementedException();
139+
}
140+
141+
public void AddRcpts(string address)
142+
{
143+
throw new NotImplementedException();
144+
}
145+
146+
public void AddRcpts(IEnumerable<string> addresses)
147+
{
148+
throw new NotImplementedException();
149+
}
150+
151+
public void AddRcpts(IDictionary<string, string> addresssInfo)
152+
{
153+
throw new NotImplementedException();
154+
}
155+
156+
public void AddRcpts(IEnumerable<IDictionary<string, string>> addressesInfo)
157+
{
158+
throw new NotImplementedException();
159+
}
160+
161+
public void AddSubVal(string tag, string value)
162+
{
163+
throw new NotImplementedException();
164+
}
165+
166+
public void AddAttachment(string filePath)
167+
{
168+
throw new NotImplementedException();
169+
}
170+
171+
public void AddAttachment(Attachment attachment)
172+
{
173+
throw new NotImplementedException();
174+
}
175+
176+
public string GetMailFrom()
177+
{
178+
throw new NotImplementedException();
179+
}
180+
181+
public IEnumerable<string> GetRecipients()
182+
{
183+
throw new NotImplementedException();
184+
}
185+
186+
public string Get(string field)
187+
{
188+
throw new NotImplementedException();
189+
}
190+
191+
public void Set(string field, string value)
192+
{
193+
throw new NotImplementedException();
194+
}
195+
196+
public void DisableGravatar()
197+
{
198+
throw new NotImplementedException();
199+
}
200+
201+
public void DisableOpenTracking()
202+
{
203+
throw new NotImplementedException();
204+
}
205+
206+
public void DisableClickTracking()
207+
{
208+
throw new NotImplementedException();
209+
}
210+
211+
public void DisableSpamCheck()
212+
{
213+
throw new NotImplementedException();
214+
}
215+
216+
public void DisableUnsubscribe()
217+
{
218+
throw new NotImplementedException();
219+
}
220+
221+
public void DisableFooter()
222+
{
223+
throw new NotImplementedException();
224+
}
225+
226+
public void DisableGoogleAnalytics()
227+
{
228+
throw new NotImplementedException();
229+
}
230+
231+
public void DisableTemplate()
232+
{
233+
throw new NotImplementedException();
234+
}
235+
236+
public void DisableBcc()
237+
{
238+
throw new NotImplementedException();
239+
}
240+
241+
public void DisableBipassListManaement()
242+
{
243+
throw new NotImplementedException();
244+
}
245+
246+
public void EnableGravatar()
247+
{
248+
throw new NotImplementedException();
249+
}
250+
251+
public void EnableOpenTracking()
252+
{
253+
throw new NotImplementedException();
254+
}
255+
256+
public void EnableClickTracking(string text = null)
257+
{
258+
throw new NotImplementedException();
259+
}
260+
261+
public void EnableSpamCheck(int score = 5, string url = null)
262+
{
263+
throw new NotImplementedException();
264+
}
265+
266+
public void EnableUnsubscribe(string text, string html, string replace, string url, string landing)
267+
{
268+
throw new NotImplementedException();
269+
}
270+
271+
public void EnableFooter(string text = null, string html = null)
272+
{
273+
throw new NotImplementedException();
274+
}
275+
276+
public void EnableGoogleAnalytics(string source, string medium, string term, string content = null, string campaign = null)
277+
{
278+
throw new NotImplementedException();
279+
}
280+
281+
public void EnableTemplate(string html = null)
282+
{
283+
throw new NotImplementedException();
284+
}
285+
286+
public void EnableBcc(string email = null)
287+
{
288+
throw new NotImplementedException();
289+
}
290+
291+
public void EnableBipassListManaement()
292+
{
293+
throw new NotImplementedException();
294+
}
295+
296+
public void Mail()
297+
{
298+
throw new NotImplementedException();
299+
}
300+
}
301+
}

SendGrid/SendGrid/Transport/ITransport.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
6-
namespace SendGrid.Transport
1+
namespace SendGrid.Transport
72
{
83
public interface ITransport
94
{

0 commit comments

Comments
 (0)