Search Results for

    Show / Hide Table of Contents

    Class ThreadProjection

    A thread is a message thread created for a message received by an alias

    Inheritance
    object
    ThreadProjection
    Implements
    IEquatable<ThreadProjection>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "ThreadProjection")]
    public class ThreadProjection : IEquatable<ThreadProjection>, IValidatableObject

    Constructors

    View Source

    ThreadProjection()

    Initializes a new instance of the ThreadProjection class.

    Declaration
    [JsonConstructor]
    protected ThreadProjection()
    View Source

    ThreadProjection(DateTime, DateTime, Guid, Guid, List<string>, List<string>, List<string>, Guid, string, string, Guid)

    Initializes a new instance of the ThreadProjection class.

    Declaration
    public ThreadProjection(DateTime createdAt = default, DateTime updatedAt = default, Guid inboxId = default, Guid userId = default, List<string> to = null, List<string> bcc = null, List<string> cc = null, Guid aliasId = default, string subject = null, string name = null, Guid id = default)
    Parameters
    Type Name Description
    DateTime createdAt

    Created at DateTime (required).

    DateTime updatedAt

    Updated at DateTime (required).

    System.Guid inboxId

    Inbox ID (required).

    System.Guid userId

    User ID (required).

    System.Collections.Generic.List<T><string> to

    To recipients (required).

    System.Collections.Generic.List<T><string> bcc

    BCC recipients.

    System.Collections.Generic.List<T><string> cc

    CC recipients.

    System.Guid aliasId

    Alias ID (required).

    string subject

    Thread subject.

    string name

    Name of thread.

    System.Guid id

    ID of email thread (required).

    Properties

    View Source

    AliasId

    Alias ID

    Declaration
    [DataMember(Name = "aliasId", IsRequired = true, EmitDefaultValue = true)]
    public Guid AliasId { get; set; }
    Property Value
    Type Description
    System.Guid

    Alias ID

    View Source

    Bcc

    BCC recipients

    Declaration
    [DataMember(Name = "bcc", EmitDefaultValue = false)]
    public List<string> Bcc { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<T><string>

    BCC recipients

    View Source

    Cc

    CC recipients

    Declaration
    [DataMember(Name = "cc", EmitDefaultValue = false)]
    public List<string> Cc { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<T><string>

    CC recipients

    View Source

    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

    View Source

    Id

    ID of email thread

    Declaration
    [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
    public Guid Id { get; set; }
    Property Value
    Type Description
    System.Guid

    ID of email thread

    View Source

    InboxId

    Inbox ID

    Declaration
    [DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)]
    public Guid InboxId { get; set; }
    Property Value
    Type Description
    System.Guid

    Inbox ID

    View Source

    Name

    Name of thread

    Declaration
    [DataMember(Name = "name", EmitDefaultValue = false)]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    Name of thread

    View Source

    Subject

    Thread subject

    Declaration
    [DataMember(Name = "subject", EmitDefaultValue = false)]
    public string Subject { get; set; }
    Property Value
    Type Description
    string

    Thread subject

    View Source

    To

    To recipients

    Declaration
    [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)]
    public List<string> To { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<T><string>

    To recipients

    View Source

    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

    View Source

    UserId

    User ID

    Declaration
    [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
    public Guid UserId { get; set; }
    Property Value
    Type Description
    System.Guid

    User ID

    Methods

    View Source

    Equals(ThreadProjection)

    Returns true if ThreadProjection instances are equal

    Declaration
    public bool Equals(ThreadProjection input)
    Parameters
    Type Name Description
    ThreadProjection input

    Instance of ThreadProjection to be compared

    Returns
    Type Description
    bool

    Boolean

    View Source

    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
    Object.Equals(Object)
    View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code

    Overrides
    Object.GetHashCode()
    View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    string

    JSON string presentation of the object

    View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()
    View Source

    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

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • View Source
    In This Article
    Back to top See MailSlurp website for more information.