Skip to content

Commit 312fbbe

Browse files
Updating Documentation
1 parent db9e389 commit 312fbbe

File tree

3 files changed

+42
-42
lines changed

3 files changed

+42
-42
lines changed

src/SocketLabs/InjectionApi/Message/BasicMessage.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ namespace SocketLabs.InjectionApi.Message
1313
///
1414
/// message.PlainTextBody = "This is the body of my message sent to ##Name##";
1515
/// message.HtmlBody = "<![CDATA[ <html> ]]>This is the HtmlBody of my message sent to ##Name##<![CDATA[ </html> ]]>";
16-
/// message.AmpBody("<!doctype html>" +
17-
///"<html amp4email>" +
18-
///"<head>" +
19-
///" <meta charset=\"utf-8\">" +
20-
///" <script async src=\"https://cdn.ampproject.org/v0.js\"></script>" +
21-
///" <style amp4email-boilerplate>body{visibility:hidden}</style>" +
22-
///" <style amp-custom>" +
23-
///" h1 {" +
24-
///" margin: 1rem;" +
25-
///" }" +
26-
///" </style>" +
27-
///"</head>" +
28-
///"<body>" +
29-
///" <h1>This is the AMP Html Body of my message</h1>" +
30-
///"</body>" +
31-
///"</html>");
16+
/// message.AmpBody = "<![CDATA[ <!doctype html> ]]>" +
17+
/// "<![CDATA[ <html amp4email> ]]>" +
18+
/// "<![CDATA[ <head> ]]>" +
19+
/// " <![CDATA[ <meta charset=\"utf-8\"> ]]>" +
20+
/// " <![CDATA[ <script async src=\"https://cdn.ampproject.org/v0.js\"> ]]><![CDATA[ </style> ]]>" +
21+
/// " <![CDATA[ <style amp4email-boilerplate> ]]>body{visibility:hidden}<![CDATA[ </style> ]]>" +
22+
/// " <![CDATA[ <style amp-custom> ]]>" +
23+
/// " h1 {" +
24+
/// " margin: 1rem;" +
25+
/// " }" +
26+
/// " <![CDATA[ </style> ]]>" +
27+
/// "<![CDATA[ </head> ]]>" +
28+
/// "<![CDATA[ <body> ]]>" +
29+
/// " <![CDATA[ <h1> ]]>This is the AMP Html Body of my message<![CDATA[ </h1> ]]>" +
30+
/// "<![CDATA[ </body> ]]>" +
31+
/// "<![CDATA[ </html> ]]>";
3232
/// message.Subject = "Sending a test message";
3333
/// message.From.Email = "from@example.com";
3434
///
@@ -41,7 +41,7 @@ namespace SocketLabs.InjectionApi.Message
4141
/// </example>
4242
/// <seealso cref="IMessageBase"/>
4343
/// <seealso cref="IBasicMessage"/>
44-
44+
4545
public class BasicMessage : IBasicMessage
4646
{
4747
/// <summary>
@@ -57,7 +57,7 @@ public class BasicMessage : IBasicMessage
5757
/// </summary>
5858
/// <remarks>
5959
/// (Optional)
60-
/// Either PlainTextBody or HtmlBody must be used or use a ApiTemplate with the AmpBody
60+
/// Either PlainTextBody or HtmlBody must be used with the AmpBody or use a ApiTemplate
6161
/// </remarks>
6262
public string PlainTextBody { get; set; }
6363

@@ -66,7 +66,7 @@ public class BasicMessage : IBasicMessage
6666
/// </summary>
6767
/// <remarks>
6868
/// (Optional)
69-
/// Either PlainTextBody or HtmlBody must be used or use a ApiTemplate with the AmpBody
69+
/// Either PlainTextBody or HtmlBody must be used with the AmpBody or use a ApiTemplate
7070
/// </remarks>
7171
public string HtmlBody { get; set; }
7272

@@ -75,7 +75,7 @@ public class BasicMessage : IBasicMessage
7575
/// </summary>
7676
/// <remarks>
7777
/// (Optional)
78-
/// Either PlainTextBody or HtmlBody must be used or use a ApiTemplate with the AmpBody with the AmpBody
78+
/// Either PlainTextBody or HtmlBody must be used with the AmpBody or use a ApiTemplate
7979
/// See https://amp.dev/documentation/ for more information on AMP implementation
8080
/// </remarks>
8181
public string AmpBody { get; set; }

src/SocketLabs/InjectionApi/Message/BulkMessage.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ namespace SocketLabs.InjectionApi.Message
1414
///
1515
/// message.PlainTextBody = "This is the body of my message sent to ##Name##";
1616
/// message.HtmlBody = "<![CDATA[ <html> ]]>This is the HtmlBody of my message sent to ##Name##<![CDATA[ </html> ]]>";
17-
/// message.AmpBody("<!doctype html>" +
18-
///"<html amp4email>" +
19-
///"<head>" +
20-
///" <meta charset=\"utf-8\">" +
21-
///" <script async src=\"https://cdn.ampproject.org/v0.js\"></script>" +
22-
///" <style amp4email-boilerplate>body{visibility:hidden}</style>" +
23-
///" <style amp-custom>" +
24-
///" h1 {" +
25-
///" margin: 1rem;" +
26-
///" }" +
27-
///" </style>" +
28-
///"</head>" +
29-
///"<body>" +
30-
///" <h1>This is the AMP Html Body of my message</h1>" +
31-
///"</body>" +
32-
///"</html>");
17+
/// message.AmpBody = "<![CDATA[ <!doctype html> ]]>" +
18+
/// "<![CDATA[ <html amp4email> ]]>" +
19+
/// "<![CDATA[ <head> ]]>" +
20+
/// " <![CDATA[ <meta charset=\"utf-8\"> ]]>" +
21+
/// " <![CDATA[ <script async src=\"https://cdn.ampproject.org/v0.js\"> ]]><![CDATA[ </style> ]]>" +
22+
/// " <![CDATA[ <style amp4email-boilerplate> ]]>body{visibility:hidden}<![CDATA[ </style> ]]>" +
23+
/// " <![CDATA[ <style amp-custom> ]]>" +
24+
/// " h1 {" +
25+
/// " margin: 1rem;" +
26+
/// " }" +
27+
/// " <![CDATA[ </style> ]]>" +
28+
/// "<![CDATA[ </head> ]]>" +
29+
/// "<![CDATA[ <body> ]]>" +
30+
/// " <![CDATA[ <h1> ]]>This is the AMP Html Body of my message<![CDATA[ </h1> ]]>" +
31+
/// "<![CDATA[ </body> ]]>" +
32+
/// "<![CDATA[ </html> ]]>";
3333
/// message.Subject = "Sending a test message";
3434
/// message.From.Email = "from@example.com";
3535
///
@@ -62,7 +62,7 @@ public class BulkMessage : IBulkMessage
6262
/// </summary>
6363
/// <remarks>
6464
/// (Optional)
65-
/// Either PlainTextBody or HtmlBody must be used or use a ApiTemplate with the AmpBody
65+
/// Either PlainTextBody or HtmlBody must be used with the AmpBody or use a ApiTemplate
6666
/// </remarks>
6767
public string PlainTextBody { get; set; }
6868

@@ -71,7 +71,7 @@ public class BulkMessage : IBulkMessage
7171
/// </summary>
7272
/// <remarks>
7373
/// (Optional)
74-
/// Either PlainTextBody or HtmlBody must be used or use a ApiTemplate with the AmpBody
74+
/// Either PlainTextBody or HtmlBody must be used with the AmpBody or use a ApiTemplate
7575
/// </remarks>
7676
public string HtmlBody { get; set; }
7777

@@ -80,7 +80,7 @@ public class BulkMessage : IBulkMessage
8080
/// </summary>
8181
/// <remarks>
8282
/// (Optional)
83-
/// Either PlainTextBody or HtmlBody must be used or use a ApiTemplate with the AmpBody with the AmpBody
83+
/// Either PlainTextBody or HtmlBody must be used with the AmpBody or use a ApiTemplate
8484
/// See https://amp.dev/documentation/ for more information on AMP implementation
8585
/// </remarks>
8686
public string AmpBody { get; set; }

src/SocketLabs/InjectionApi/Message/IMessageBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public interface IMessageBase
2020
/// </summary>
2121
/// <remarks>
2222
/// (Optional)
23-
/// Either PlainTextBody or HtmlBody must be used or use a ApiTemplate with the AmpBody
23+
/// Either PlainTextBody or HtmlBody must be used with the AmpBody or use a ApiTemplate
2424
/// </remarks>
2525
string PlainTextBody { get; set; }
2626

@@ -29,7 +29,7 @@ public interface IMessageBase
2929
/// </summary>
3030
/// <remarks>
3131
/// (Optional)
32-
/// Either PlainTextBody or HtmlBody must be used or use a ApiTemplate with the AmpBody
32+
/// Either PlainTextBody or HtmlBody must be used with the AmpBody or use a ApiTemplate
3333
/// </remarks>
3434
string HtmlBody { get; set; }
3535

@@ -38,7 +38,7 @@ public interface IMessageBase
3838
/// </summary>
3939
/// <remarks>
4040
/// (Optional)
41-
/// Either PlainTextBody or HtmlBody must be used or use a ApiTemplate with the AmpBody
41+
/// Either PlainTextBody or HtmlBody must be used with the AmpBody or use a ApiTemplate
4242
/// See https://amp.dev/documentation/ for more information on AMP implementation
4343
/// </remarks>
4444
string AmpBody { get; set; }

0 commit comments

Comments
 (0)