Class SentEmailDto
Sent email details
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "SentEmailDto")]
public class SentEmailDto : IEquatable<SentEmailDto>, IValidatableObject
Constructors
View SourceSentEmailDto()
Initializes a new instance of the SentEmailDto class.
Declaration
[JsonConstructor]
protected SentEmailDto()
SentEmailDto(Guid, Guid, Guid, Guid?, List<string>, string, string, List<string>, List<string>, List<string>, string, string, string, List<Guid?>, Guid?, string, bool?, DateTime, List<Guid?>, string, List<string>, bool?, Guid?, Dictionary<string, object>, Dictionary<string, string>, bool)
Initializes a new instance of the SentEmailDto class.
Declaration
public SentEmailDto(Guid id = default, Guid userId = default, Guid inboxId = default, Guid? domainId = null, List<string> to = null, string from = null, string replyTo = null, List<string> cc = null, List<string> bcc = null, List<string> attachments = null, string subject = null, string bodyMD5Hash = null, string body = null, List<Guid?> toContacts = null, Guid? toGroup = null, string charset = null, bool? isHTML = null, DateTime sentAt = default, List<Guid?> pixelIds = null, string messageId = null, List<string> messageIds = null, bool? virtualSend = null, Guid? templateId = null, Dictionary<string, object> templateVariables = null, Dictionary<string, string> headers = null, bool html = false)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | ID of sent email (required). |
System.Guid | userId | User ID (required). |
System.Guid | inboxId | Inbox ID email was sent from (required). |
System.Guid? | domainId | Domain ID. |
System.Collections.Generic.List<T><string> | to | Recipients email was sent to. |
string | from | Sent from address. |
string | replyTo | replyTo. |
System.Collections.Generic.List<T><string> | cc | cc. |
System.Collections.Generic.List<T><string> | bcc | bcc. |
System.Collections.Generic.List<T><string> | attachments | Array of IDs of attachments that were sent with this email. |
string | subject | subject. |
string | bodyMD5Hash | MD5 Hash. |
string | body | Sent email body. |
System.Collections.Generic.List<T><System.Guid?> | toContacts | toContacts. |
System.Guid? | toGroup | toGroup. |
string | charset | charset. |
bool? | isHTML | isHTML. |
DateTime | sentAt | sentAt (required). |
System.Collections.Generic.List<T><System.Guid?> | pixelIds | pixelIds. |
string | messageId | messageId. |
System.Collections.Generic.List<T><string> | messageIds | messageIds. |
bool? | virtualSend | virtualSend. |
System.Guid? | templateId | templateId. |
Dictionary<string, object> | templateVariables | templateVariables. |
Dictionary<string, string> | headers | headers. |
bool | html | html. |
Properties
View SourceAttachments
Array of IDs of attachments that were sent with this email
Declaration
[DataMember(Name = "attachments", EmitDefaultValue = true)]
public List<string> Attachments { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> | Array of IDs of attachments that were sent with this email |
Bcc
Gets or Sets Bcc
Declaration
[DataMember(Name = "bcc", EmitDefaultValue = true)]
public List<string> Bcc { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
Body
Sent email body
Declaration
[DataMember(Name = "body", EmitDefaultValue = true)]
public string Body { get; set; }
Property Value
Type | Description |
---|---|
string | Sent email body |
BodyMD5Hash
MD5 Hash
Declaration
[DataMember(Name = "bodyMD5Hash", EmitDefaultValue = true)]
public string BodyMD5Hash { get; set; }
Property Value
Type | Description |
---|---|
string | MD5 Hash |
Cc
Gets or Sets Cc
Declaration
[DataMember(Name = "cc", EmitDefaultValue = true)]
public List<string> Cc { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
Charset
Gets or Sets Charset
Declaration
[DataMember(Name = "charset", EmitDefaultValue = true)]
public string Charset { get; set; }
Property Value
Type | Description |
---|---|
string |
DomainId
Domain ID
Declaration
[DataMember(Name = "domainId", EmitDefaultValue = true)]
public Guid? DomainId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? | Domain ID |
From
Sent from address
Declaration
[DataMember(Name = "from", EmitDefaultValue = true)]
public string From { get; set; }
Property Value
Type | Description |
---|---|
string | Sent from address |
Headers
Gets or Sets Headers
Declaration
[DataMember(Name = "headers", EmitDefaultValue = true)]
public Dictionary<string, string> Headers { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
Html
Gets or Sets Html
Declaration
[DataMember(Name = "html", EmitDefaultValue = true)]
public bool Html { get; set; }
Property Value
Type | Description |
---|---|
bool |
Id
ID of sent email
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid | ID of sent email |
InboxId
Inbox ID email was sent from
Declaration
[DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)]
public Guid InboxId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid | Inbox ID email was sent from |
IsHTML
Gets or Sets IsHTML
Declaration
[DataMember(Name = "isHTML", EmitDefaultValue = true)]
public bool? IsHTML { get; set; }
Property Value
Type | Description |
---|---|
bool? |
MessageId
Gets or Sets MessageId
Declaration
[DataMember(Name = "messageId", EmitDefaultValue = true)]
public string MessageId { get; set; }
Property Value
Type | Description |
---|---|
string |
MessageIds
Gets or Sets MessageIds
Declaration
[DataMember(Name = "messageIds", EmitDefaultValue = true)]
public List<string> MessageIds { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
PixelIds
Gets or Sets PixelIds
Declaration
[DataMember(Name = "pixelIds", EmitDefaultValue = true)]
public List<Guid?> PixelIds { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><System.Guid?> |
ReplyTo
Gets or Sets ReplyTo
Declaration
[DataMember(Name = "replyTo", EmitDefaultValue = true)]
public string ReplyTo { get; set; }
Property Value
Type | Description |
---|---|
string |
SentAt
Gets or Sets SentAt
Declaration
[DataMember(Name = "sentAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime SentAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Subject
Gets or Sets Subject
Declaration
[DataMember(Name = "subject", EmitDefaultValue = true)]
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
string |
TemplateId
Gets or Sets TemplateId
Declaration
[DataMember(Name = "templateId", EmitDefaultValue = true)]
public Guid? TemplateId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
TemplateVariables
Gets or Sets TemplateVariables
Declaration
[DataMember(Name = "templateVariables", EmitDefaultValue = true)]
public Dictionary<string, object> TemplateVariables { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, object> |
To
Recipients email was sent to
Declaration
[DataMember(Name = "to", EmitDefaultValue = true)]
public List<string> To { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> | Recipients email was sent to |
ToContacts
Gets or Sets ToContacts
Declaration
[DataMember(Name = "toContacts", EmitDefaultValue = true)]
public List<Guid?> ToContacts { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><System.Guid?> |
ToGroup
Gets or Sets ToGroup
Declaration
[DataMember(Name = "toGroup", EmitDefaultValue = true)]
public Guid? ToGroup { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
UserId
User ID
Declaration
[DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
public Guid UserId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid | User ID |
VirtualSend
Gets or Sets VirtualSend
Declaration
[DataMember(Name = "virtualSend", EmitDefaultValue = true)]
public bool? VirtualSend { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
View SourceEquals(SentEmailDto)
Returns true if SentEmailDto instances are equal
Declaration
public bool Equals(SentEmailDto input)
Parameters
Type | Name | Description |
---|---|---|
SentEmailDto | input | Instance of SentEmailDto 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 |