Class EmailThreadProjection
An email thread is a message thread created for a email based on Message-ID, In-Reply-To, and References headers
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "EmailThreadProjection")]
public class EmailThreadProjection : IValidatableObject
Constructors
View SourceEmailThreadProjection()
Initializes a new instance of the EmailThreadProjection class.
Declaration
[JsonConstructor]
protected EmailThreadProjection()
EmailThreadProjection(SenderProjection, EmailRecipientsProjection, Guid, Guid, DateTime, DateTime, List<string>, List<string>, List<string>, bool, bool, int, string, string, DateTime, string, SenderProjection, string, Guid, string)
Initializes a new instance of the EmailThreadProjection class.
Declaration
public EmailThreadProjection(SenderProjection sender = null, EmailRecipientsProjection recipients = null, Guid userId = default, Guid inboxId = default, DateTime updatedAt = default, DateTime createdAt = default, List<string> to = null, List<string> cc = null, List<string> bcc = null, bool hasAttachments = false, bool unread = false, int messageCount = 0, string lastBodyExcerpt = null, string lastTextExcerpt = null, DateTime lastCreatedAt = default, string lastFrom = null, SenderProjection lastSender = null, string subject = null, Guid id = default, string from = null)
Parameters
Type | Name | Description |
---|---|---|
SenderProjection | sender | sender. |
EmailRecipientsProjection | recipients | recipients. |
Guid | userId | User ID (required). |
Guid | inboxId | Inbox ID. |
DateTime | updatedAt | Updated at DateTime (required). |
DateTime | createdAt | Created at DateTime (required). |
List<string> | to | To recipients (required). |
List<string> | cc | CC recipients. |
List<string> | bcc | BCC recipients. |
bool | hasAttachments | Has attachments (required). |
bool | unread | Has unread (required). |
int | messageCount | Number of messages in the thread (required). |
string | lastBodyExcerpt | Last body excerpt. |
string | lastTextExcerpt | Last text excerpt. |
DateTime | lastCreatedAt | Last email created time. |
string | lastFrom | Last sender. |
SenderProjection | lastSender | lastSender. |
string | subject | Thread topic subject. |
Guid | id | ID of email thread (required). |
string | from | From sender. |
Properties
View SourceBcc
BCC recipients
Declaration
[DataMember(Name = "bcc", EmitDefaultValue = false)]
public List<string> Bcc { get; set; }
Property Value
Type | Description |
---|---|
List<string> | BCC recipients |
Cc
CC recipients
Declaration
[DataMember(Name = "cc", EmitDefaultValue = false)]
public List<string> Cc { get; set; }
Property Value
Type | Description |
---|---|
List<string> | CC recipients |
CreatedAt
Created at DateTime
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime | Created at DateTime |
From
From sender
Declaration
[DataMember(Name = "from", EmitDefaultValue = false)]
public string From { get; set; }
Property Value
Type | Description |
---|---|
string | From sender |
HasAttachments
Has attachments
Declaration
[DataMember(Name = "hasAttachments", IsRequired = true, EmitDefaultValue = true)]
public bool HasAttachments { get; set; }
Property Value
Type | Description |
---|---|
bool | Has attachments |
Id
ID of email thread
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
Guid | ID of email thread |
InboxId
Inbox ID
Declaration
[DataMember(Name = "inboxId", EmitDefaultValue = false)]
public Guid InboxId { get; set; }
Property Value
Type | Description |
---|---|
Guid | Inbox ID |
LastBodyExcerpt
Last body excerpt
Declaration
[DataMember(Name = "lastBodyExcerpt", EmitDefaultValue = false)]
public string LastBodyExcerpt { get; set; }
Property Value
Type | Description |
---|---|
string | Last body excerpt |
LastCreatedAt
Last email created time
Declaration
[DataMember(Name = "lastCreatedAt", EmitDefaultValue = false)]
public DateTime LastCreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime | Last email created time |
LastFrom
Last sender
Declaration
[DataMember(Name = "lastFrom", EmitDefaultValue = false)]
public string LastFrom { get; set; }
Property Value
Type | Description |
---|---|
string | Last sender |
LastSender
Gets or Sets LastSender
Declaration
[DataMember(Name = "lastSender", EmitDefaultValue = false)]
public SenderProjection LastSender { get; set; }
Property Value
Type | Description |
---|---|
SenderProjection |
LastTextExcerpt
Last text excerpt
Declaration
[DataMember(Name = "lastTextExcerpt", EmitDefaultValue = false)]
public string LastTextExcerpt { get; set; }
Property Value
Type | Description |
---|---|
string | Last text excerpt |
MessageCount
Number of messages in the thread
Declaration
[DataMember(Name = "messageCount", IsRequired = true, EmitDefaultValue = true)]
public int MessageCount { get; set; }
Property Value
Type | Description |
---|---|
int | Number of messages in the thread |
Recipients
Gets or Sets Recipients
Declaration
[DataMember(Name = "recipients", EmitDefaultValue = false)]
public EmailRecipientsProjection Recipients { get; set; }
Property Value
Type | Description |
---|---|
EmailRecipientsProjection |
Sender
Gets or Sets Sender
Declaration
[DataMember(Name = "sender", EmitDefaultValue = false)]
public SenderProjection Sender { get; set; }
Property Value
Type | Description |
---|---|
SenderProjection |
Subject
Thread topic subject
Declaration
[DataMember(Name = "subject", EmitDefaultValue = false)]
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
string | Thread topic subject |
To
To recipients
Declaration
[DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)]
public List<string> To { get; set; }
Property Value
Type | Description |
---|---|
List<string> | To recipients |
Unread
Has unread
Declaration
[DataMember(Name = "unread", IsRequired = true, EmitDefaultValue = true)]
public bool Unread { get; set; }
Property Value
Type | Description |
---|---|
bool | Has unread |
UpdatedAt
Updated at DateTime
Declaration
[DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime UpdatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime | Updated at DateTime |
UserId
User ID
Declaration
[DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
public Guid UserId { get; set; }
Property Value
Type | Description |
---|---|
Guid | User ID |
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 |