Class AIMappingMatchOptions
Optional filter for matching emails based on fields. For instance filter results to only include emails whose SUBJECT value does CONTAIN given match value. An example payload would be { matches: [{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }] }. You can also pass conditions such as HAS_ATTACHMENT. If you wish to extract regex matches inside the email content see the getEmailContentMatch method in the EmailController.
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "AIMappingMatchOptions")]
public class AIMappingMatchOptions : IValidatableObject
Constructors
View SourceAIMappingMatchOptions(List<AIMappingMatchOption>)
Initializes a new instance of the AIMappingMatchOptions class.
Declaration
public AIMappingMatchOptions(List<AIMappingMatchOption> matches = null)
Parameters
| Type | Name | Description |
|---|---|---|
| List<AIMappingMatchOption> | matches | Zero or more match options such as |
Properties
View SourceMatches
Zero or more match options such as { field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }. Options are additive so if one does not match the email is excluded from results
Declaration
[DataMember(Name = "matches", EmitDefaultValue = true)]
public List<AIMappingMatchOption> Matches { get; set; }
Property Value
| Type | Description |
|---|---|
| List<AIMappingMatchOption> | Zero or more match options such as |
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 |