Class CreateTrackingOptOutRequest
- Namespace
- Mailtrap.TrackingOptOuts.Requests
- Assembly
- Mailtrap.Abstractions.dll
Request object for adding an email address to the tracking opt-out list.
public sealed record CreateTrackingOptOutRequest : IValidatable, IEquatable<CreateTrackingOptOutRequest>
- Inheritance
-
CreateTrackingOptOutRequest
- Implements
Properties
DomainId
Gets or sets the identifier of the sending domain the opt-out applies to.
[JsonPropertyName("domain_id")]
[JsonPropertyOrder(2)]
public long DomainId { get; set; }
Property Value
- long
Sending domain identifier.
Gets or sets the email address to opt out of tracking.
[JsonPropertyName("email")]
[JsonPropertyOrder(1)]
public string? Email { get; set; }
Property Value
- string
Email address.
Methods
Validate()
Validates the current instance.
public ValidationResult Validate()
Returns
- ValidationResult
Object containing validation errors, if any.