Class BounceProjection
Bounced email event
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "BounceProjection")]
public class BounceProjection : IEquatable<BounceProjection>, IValidatableObject
Constructors
View SourceBounceProjection()
Initializes a new instance of the BounceProjection class.
Declaration
[JsonConstructor]
protected BounceProjection()
BounceProjection(DateTime, string, string, string, string, Guid)
Initializes a new instance of the BounceProjection class.
Declaration
public BounceProjection(DateTime createdAt = default, string sender = null, string bounceType = null, string bounceMta = null, string subject = null, Guid id = default)
Parameters
Type | Name | Description |
---|---|---|
DateTime | createdAt | createdAt (required). |
string | sender | sender (required). |
string | bounceType | bounceType. |
string | bounceMta | bounceMta. |
string | subject | subject. |
System.Guid | id | id. |
Properties
View SourceBounceMta
Gets or Sets BounceMta
Declaration
[DataMember(Name = "bounceMta", EmitDefaultValue = true)]
public string BounceMta { 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", EmitDefaultValue = false)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Sender
Gets or Sets Sender
Declaration
[DataMember(Name = "sender", IsRequired = true, EmitDefaultValue = true)]
public string Sender { get; set; }
Property Value
Type | Description |
---|---|
string |
Subject
Gets or Sets Subject
Declaration
[DataMember(Name = "subject", EmitDefaultValue = true)]
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceEquals(BounceProjection)
Returns true if BounceProjection instances are equal
Declaration
public bool Equals(BounceProjection input)
Parameters
Type | Name | Description |
---|---|---|
BounceProjection | input | Instance of BounceProjection 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 |