Table of Contents

Class SpamReport

Namespace
Mailtrap.TestingMessages.Models
Assembly
Mailtrap.Abstractions.dll

Represents spam report for the message.

public sealed record SpamReport : IEquatable<SpamReport>
Inheritance
SpamReport
Implements

Properties

Details

Gets a list of spam report details.

[JsonPropertyName("Details")]
[JsonPropertyOrder(7)]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<SpamReportItem> Details { get; }

Property Value

IList<SpamReportItem>

List of spam report details.

ResponseCode

Gets response code.

[JsonPropertyName("ResponseCode")]
[JsonPropertyOrder(1)]
public int? ResponseCode { get; set; }

Property Value

int?

Response code.

ResponseMessage

Gets response message.

[JsonPropertyName("ResponseMessage")]
[JsonPropertyOrder(2)]
public string? ResponseMessage { get; set; }

Property Value

string

Response message.

ResponseVersion

Gets response version.

[JsonPropertyName("ResponseVersion")]
[JsonPropertyOrder(3)]
public string? ResponseVersion { get; set; }

Property Value

string

Response version.

Score

Gets spam score.

[JsonPropertyName("Score")]
[JsonPropertyOrder(4)]
public decimal? Score { get; set; }

Property Value

decimal?

Spam score.

Spam

Gets a flag indicating that message is marked as spam.

[JsonPropertyName("Spam")]
[JsonPropertyOrder(6)]
public bool? Spam { get; set; }

Property Value

bool?

true if the message is marked as spam.
false otherwise.

Threshold

Gets spam score threshold.

[JsonPropertyName("Threshold")]
[JsonPropertyOrder(5)]
public decimal? Threshold { get; set; }

Property Value

decimal?

Spam score threshold.