Class BouncedEmailDto
Bounced email
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "BouncedEmailDto")]
public class BouncedEmailDto : IEquatable<BouncedEmailDto>, IValidatableObject
Constructors
View SourceBouncedEmailDto()
Initializes a new instance of the BouncedEmailDto class.
Declaration
[JsonConstructor]
protected BouncedEmailDto()
BouncedEmailDto(Guid, Guid, string, List<string>, string, string, string, List<string>, string, Guid?, string, DateTime)
Initializes a new instance of the BouncedEmailDto class.
Declaration
public BouncedEmailDto(Guid id = default, Guid userId = default, string notificationType = null, List<string> sentToRecipients = null, string sender = null, string bounceMta = null, string bounceType = null, List<string> bounceRecipients = null, string bounceSubType = null, Guid? sentEmailId = null, string subject = null, DateTime createdAt = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | id (required). |
System.Guid | userId | userId (required). |
string | notificationType | notificationType (required). |
System.Collections.Generic.List<T><string> | sentToRecipients | sentToRecipients. |
string | sender | sender (required). |
string | bounceMta | bounceMta. |
string | bounceType | bounceType. |
System.Collections.Generic.List<T><string> | bounceRecipients | bounceRecipients. |
string | bounceSubType | bounceSubType. |
System.Guid? | sentEmailId | sentEmailId. |
string | subject | subject. |
DateTime | createdAt | createdAt (required). |
Properties
View SourceBounceMta
Gets or Sets BounceMta
Declaration
[DataMember(Name = "bounceMta", EmitDefaultValue = true)]
public string BounceMta { get; set; }
Property Value
Type | Description |
---|---|
string |
BounceRecipients
Gets or Sets BounceRecipients
Declaration
[DataMember(Name = "bounceRecipients", EmitDefaultValue = true)]
public List<string> BounceRecipients { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
BounceSubType
Gets or Sets BounceSubType
Declaration
[DataMember(Name = "bounceSubType", EmitDefaultValue = true)]
public string BounceSubType { get; set; }
Property Value
Type | Description |
---|---|
string |
BounceType
Gets or Sets BounceType
Declaration
[DataMember(Name = "bounceType", EmitDefaultValue = true)]
public string BounceType { get; set; }
Property Value
Type | Description |
---|---|
string |
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
NotificationType
Gets or Sets NotificationType
Declaration
[DataMember(Name = "notificationType", IsRequired = true, EmitDefaultValue = true)]
public string NotificationType { get; set; }
Property Value
Type | Description |
---|---|
string |
Sender
Gets or Sets Sender
Declaration
[DataMember(Name = "sender", IsRequired = true, EmitDefaultValue = true)]
public string Sender { get; set; }
Property Value
Type | Description |
---|---|
string |
SentEmailId
Gets or Sets SentEmailId
Declaration
[DataMember(Name = "sentEmailId", EmitDefaultValue = true)]
public Guid? SentEmailId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
SentToRecipients
Gets or Sets SentToRecipients
Declaration
[DataMember(Name = "sentToRecipients", EmitDefaultValue = true)]
public List<string> SentToRecipients { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
Subject
Gets or Sets Subject
Declaration
[DataMember(Name = "subject", EmitDefaultValue = true)]
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
string |
UserId
Gets or Sets UserId
Declaration
[DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
public Guid UserId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Methods
View SourceEquals(BouncedEmailDto)
Returns true if BouncedEmailDto instances are equal
Declaration
public bool Equals(BouncedEmailDto input)
Parameters
Type | Name | Description |
---|---|---|
BouncedEmailDto | input | Instance of BouncedEmailDto to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
Equals(object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
object | input | Object to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
Overrides
View SourceGetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Hash code |
Overrides
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 |
Overrides
Validate(ValidationContext)
To validate all properties of the instance
Declaration
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
ValidationContext | validationContext | Validation context |
Returns
Type | Description |
---|---|
IEnumerable<ValidationResult> | Validation Result |