Class DeliverabilityExpectation
Single expectation to evaluate against each selected entity
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "DeliverabilityExpectation")]
public class DeliverabilityExpectation : IValidatableObject
Constructors
View SourceDeliverabilityExpectation()
Initializes a new instance of the DeliverabilityExpectation class.
Declaration
[JsonConstructor]
protected DeliverabilityExpectation()
DeliverabilityExpectation(string, long, string, string, string)
Initializes a new instance of the DeliverabilityExpectation class.
Declaration
public DeliverabilityExpectation(string name = null, long minCount = 0, string from = null, string to = null, string subject = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Optional label for this expectation. |
| long | minCount | Minimum number of matching messages required for this expectation to pass (required). |
| string | from | Optional sender filter. Matching is case-insensitive contains against inbound sender/from values.. |
| string | to | Optional recipient filter. Matching is case-insensitive contains against recipient/to values.. |
| string | subject | Optional subject filter for INBOX scope tests. Ignored for PHONE scope tests.. |
Properties
View SourceFrom
Optional sender filter. Matching is case-insensitive contains against inbound sender/from values.
Declaration
[DataMember(Name = "from", EmitDefaultValue = true)]
public string From { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Optional sender filter. Matching is case-insensitive contains against inbound sender/from values. |
MinCount
Minimum number of matching messages required for this expectation to pass
Declaration
[DataMember(Name = "minCount", IsRequired = true, EmitDefaultValue = true)]
public long MinCount { get; set; }
Property Value
| Type | Description |
|---|---|
| long | Minimum number of matching messages required for this expectation to pass |
Name
Optional label for this expectation
Declaration
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Optional label for this expectation |
Subject
Optional subject filter for INBOX scope tests. Ignored for PHONE scope tests.
Declaration
[DataMember(Name = "subject", EmitDefaultValue = true)]
public string Subject { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Optional subject filter for INBOX scope tests. Ignored for PHONE scope tests. |
To
Optional recipient filter. Matching is case-insensitive contains against recipient/to values.
Declaration
[DataMember(Name = "to", EmitDefaultValue = true)]
public string To { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Optional recipient filter. Matching is case-insensitive contains against recipient/to values. |
Methods
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
| Type | Description |
|---|---|
| string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String presentation of the object |