Class EmailThreadItem
EmailThreadItem
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "EmailThreadItem")]
public class EmailThreadItem : IValidatableObject
Constructors
View SourceEmailThreadItem()
Initializes a new instance of the EmailThreadItem class.
Declaration
[JsonConstructor]
protected EmailThreadItem()
EmailThreadItem(ItemTypeEnum, Guid, string, string, string, List<string>, string, List<string>, List<string>, List<string>, DateTime, bool, string, string, Guid?, Sender, EmailRecipients)
Initializes a new instance of the EmailThreadItem class.
Declaration
public EmailThreadItem(EmailThreadItem.ItemTypeEnum itemType = (EmailThreadItem.ItemTypeEnum)0, Guid entityId = default, string bodyExcerpt = null, string textExcerpt = null, string subject = null, List<string> to = null, string from = null, List<string> bcc = null, List<string> cc = null, List<string> attachments = null, DateTime createdAt = default, bool read = false, string inReplyTo = null, string messageId = null, Guid? threadId = null, Sender sender = null, EmailRecipients recipients = null)
Parameters
Type | Name | Description |
---|---|---|
EmailThreadItem.ItemTypeEnum | itemType | itemType (required). |
Guid | entityId | entityId (required). |
string | bodyExcerpt | bodyExcerpt. |
string | textExcerpt | textExcerpt. |
string | subject | subject. |
List<string> | to | to (required). |
string | from | from. |
List<string> | bcc | bcc. |
List<string> | cc | cc. |
List<string> | attachments | attachments. |
DateTime | createdAt | createdAt (required). |
bool | read | read (required). |
string | inReplyTo | inReplyTo. |
string | messageId | messageId. |
Guid? | threadId | threadId. |
Sender | sender | sender. |
EmailRecipients | recipients | recipients. |
Properties
View SourceAttachments
Gets or Sets Attachments
Declaration
[DataMember(Name = "attachments", EmitDefaultValue = true)]
public List<string> Attachments { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
Bcc
Gets or Sets Bcc
Declaration
[DataMember(Name = "bcc", EmitDefaultValue = true)]
public List<string> Bcc { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
BodyExcerpt
Gets or Sets BodyExcerpt
Declaration
[DataMember(Name = "bodyExcerpt", EmitDefaultValue = true)]
public string BodyExcerpt { get; set; }
Property Value
Type | Description |
---|---|
string |
Cc
Gets or Sets Cc
Declaration
[DataMember(Name = "cc", EmitDefaultValue = true)]
public List<string> Cc { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
EntityId
Gets or Sets EntityId
Declaration
[DataMember(Name = "entityId", IsRequired = true, EmitDefaultValue = true)]
public Guid EntityId { get; set; }
Property Value
Type | Description |
---|---|
Guid |
From
Gets or Sets From
Declaration
[DataMember(Name = "from", EmitDefaultValue = true)]
public string From { get; set; }
Property Value
Type | Description |
---|---|
string |
InReplyTo
Gets or Sets InReplyTo
Declaration
[DataMember(Name = "inReplyTo", EmitDefaultValue = true)]
public string InReplyTo { get; set; }
Property Value
Type | Description |
---|---|
string |
ItemType
Gets or Sets ItemType
Declaration
[DataMember(Name = "itemType", IsRequired = true, EmitDefaultValue = true)]
public EmailThreadItem.ItemTypeEnum ItemType { get; set; }
Property Value
Type | Description |
---|---|
EmailThreadItem.ItemTypeEnum |
MessageId
Gets or Sets MessageId
Declaration
[DataMember(Name = "messageId", EmitDefaultValue = true)]
public string MessageId { get; set; }
Property Value
Type | Description |
---|---|
string |
Read
Gets or Sets Read
Declaration
[DataMember(Name = "read", IsRequired = true, EmitDefaultValue = true)]
public bool Read { get; set; }
Property Value
Type | Description |
---|---|
bool |
Recipients
Gets or Sets Recipients
Declaration
[DataMember(Name = "recipients", EmitDefaultValue = true)]
public EmailRecipients Recipients { get; set; }
Property Value
Type | Description |
---|---|
EmailRecipients |
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 = true)]
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
string |
TextExcerpt
Gets or Sets TextExcerpt
Declaration
[DataMember(Name = "textExcerpt", EmitDefaultValue = true)]
public string TextExcerpt { get; set; }
Property Value
Type | Description |
---|---|
string |
ThreadId
Gets or Sets ThreadId
Declaration
[DataMember(Name = "threadId", EmitDefaultValue = true)]
public Guid? ThreadId { get; set; }
Property Value
Type | Description |
---|---|
Guid? |
To
Gets or Sets To
Declaration
[DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)]
public List<string> To { get; set; }
Property Value
Type | Description |
---|---|
List<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 |