-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced deliverability reporting request/models
- Loading branch information
1 parent
4ac2c69
commit f476184
Showing
9 changed files
with
145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Mailosaur.Models | ||
{ | ||
public class BlockListResult | ||
{ | ||
public string Id { get; set; } | ||
public string Name { get; set; } | ||
public ResultEnum Result { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace Mailosaur.Models | ||
{ | ||
public class Content | ||
{ | ||
public bool Embed { get; set; } | ||
public bool Iframe { get; set; } | ||
public bool Object { get; set; } | ||
public bool Script { get; set; } | ||
public bool ShortUrls { get; set; } | ||
public int TextSize { get; set; } | ||
public int TotalSize { get; set; } | ||
public bool MissingAlt { get; set; } | ||
public bool MissingListUnsubscribe { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Mailosaur.Models | ||
{ | ||
public class DeliverabilityReport | ||
{ | ||
public EmailAuthenticationResult Spf { get; set; } | ||
public List<EmailAuthenticationResult> Dkim { get; set; } | ||
public EmailAuthenticationResult Dmarc { get; set; } | ||
public List<BlockListResult> BlockLists { get; set; } | ||
public Content Content { get; set; } | ||
public DnsRecords DnsRecords { get; set; } = new DnsRecords(); | ||
public SpamAssassinResult SpamAssassin { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Mailosaur.Models | ||
{ | ||
public class DnsRecords | ||
{ | ||
public List<string> A { get; set; } | ||
public List<string> MX { get; set; } | ||
public List<string> PTR { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Mailosaur.Models | ||
{ | ||
public class EmailAuthenticationResult | ||
{ | ||
public ResultEnum Result { get; set; } | ||
public String Description { get; set; } | ||
public string RawValue { get; set; } | ||
public Dictionary<string, string> Tags { get; set; } = new Dictionary<string, string>(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Mailosaur.Models | ||
{ | ||
public enum ResultEnum | ||
{ | ||
Pass, | ||
Warning, | ||
Fail, | ||
Timeout | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Mailosaur.Models | ||
{ | ||
public class SpamAssassinResult | ||
{ | ||
public int Score { get; set; } | ||
public ResultEnum Result { get; set; } | ||
public List<SpamAssassinRule> Rules { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters