Class FakeEmailDto
FakeEmailDto
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "FakeEmailDto")]
public class FakeEmailDto : IEquatable<FakeEmailDto>, IValidatableObject
Constructors
View SourceFakeEmailDto()
Initializes a new instance of the FakeEmailDto class.
Declaration
[JsonConstructor]
protected FakeEmailDto()
FakeEmailDto(Guid, string, Sender, EmailRecipients, string, string, string, bool, DateTime)
Initializes a new instance of the FakeEmailDto class.
Declaration
public FakeEmailDto(Guid id = default, string emailAddress = null, Sender sender = null, EmailRecipients recipients = null, string subject = null, string preview = null, string body = null, bool seen = false, DateTime createdAt = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | id (required). |
string | emailAddress | emailAddress (required). |
Sender | sender | sender. |
EmailRecipients | recipients | recipients. |
string | subject | subject. |
string | preview | preview. |
string | body | body (required). |
bool | seen | seen (required). |
DateTime | createdAt | createdAt (required). |
Properties
View SourceBody
Gets or Sets Body
Declaration
[DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)]
public string Body { 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 |
EmailAddress
Gets or Sets EmailAddress
Declaration
[DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)]
public string EmailAddress { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Preview
Gets or Sets Preview
Declaration
[DataMember(Name = "preview", EmitDefaultValue = false)]
public string Preview { get; set; }
Property Value
Type | Description |
---|---|
string |
Recipients
Gets or Sets Recipients
Declaration
[DataMember(Name = "recipients", EmitDefaultValue = true)]
public EmailRecipients Recipients { get; set; }
Property Value
Type | Description |
---|---|
EmailRecipients |
Seen
Gets or Sets Seen
Declaration
[DataMember(Name = "seen", IsRequired = true, EmitDefaultValue = true)]
public bool Seen { get; set; }
Property Value
Type | Description |
---|---|
bool |
Sender
Gets or Sets Sender
Declaration
[DataMember(Name = "sender", EmitDefaultValue = true)]
public Sender Sender { get; set; }
Property Value
Type | Description |
---|---|
Sender |
Subject
Gets or Sets Subject
Declaration
[DataMember(Name = "subject", EmitDefaultValue = false)]
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceEquals(FakeEmailDto)
Returns true if FakeEmailDto instances are equal
Declaration
public bool Equals(FakeEmailDto input)
Parameters
Type | Name | Description |
---|---|---|
FakeEmailDto | input | Instance of FakeEmailDto 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 |