Class FakeEmailPreview
FakeEmailPreview
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "FakeEmailPreview")]
public class FakeEmailPreview : IValidatableObject
Constructors
View SourceFakeEmailPreview()
Initializes a new instance of the FakeEmailPreview class.
Declaration
[JsonConstructor]
protected FakeEmailPreview()
FakeEmailPreview(Guid, string, Sender, EmailRecipients, bool, string, string, DateTime, bool)
Initializes a new instance of the FakeEmailPreview class.
Declaration
public FakeEmailPreview(Guid id = default, string emailAddress = null, Sender sender = null, EmailRecipients recipients = null, bool hasAttachments = false, string subject = null, string preview = null, DateTime createdAt = default, bool seen = false)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | id (required). |
string | emailAddress | emailAddress (required). |
Sender | sender | sender. |
EmailRecipients | recipients | recipients. |
bool | hasAttachments | hasAttachments (required). |
string | subject | subject. |
string | preview | preview. |
DateTime | createdAt | createdAt (required). |
bool | seen | seen (required). |
Properties
View SourceCreatedAt
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 |
HasAttachments
Gets or Sets HasAttachments
Declaration
[DataMember(Name = "hasAttachments", IsRequired = true, EmitDefaultValue = true)]
public bool HasAttachments { get; set; }
Property Value
Type | Description |
---|---|
bool |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
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 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 |