Search Results for

    Show / Hide Table of Contents

    Class EmailProjection

    A compact representation of a full email. Used in list endpoints to keep response sizes low. Body and attachments are not included. To get all fields of the email use the getEmail method with the email projection's ID. See EmailDto for documentation on projection properties.

    Inheritance
    object
    EmailProjection
    Implements
    IValidatableObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "EmailProjection")]
    public class EmailProjection : IValidatableObject

    Constructors

    View Source

    EmailProjection()

    Initializes a new instance of the EmailProjection class.

    Declaration
    [JsonConstructor]
    protected EmailProjection()
    View Source

    EmailProjection(Sender, EmailRecipients, List<string>, Guid, DateTime, List<string>, List<string>, List<string>, string, Guid?, bool?, string, Guid?, long?, bool, string, string, List<string>, string, bool, string, Guid, Guid?, string)

    Initializes a new instance of the EmailProjection class.

    Declaration
    public EmailProjection(Sender sender = null, EmailRecipients recipients = null, List<string> attachments = null, Guid inboxId = default, DateTime createdAt = default, List<string> to = null, List<string> cc = null, List<string> bcc = null, string messageId = null, Guid? domainId = null, bool? favourite = null, string inReplyTo = null, Guid? plusAddress = null, long? sizeBytes = null, bool read = false, string bodyExcerpt = null, string textExcerpt = null, List<string> bodyPartContentTypes = null, string bodyMD5Hash = null, bool teamAccess = false, string subject = null, Guid id = default, Guid? threadId = null, string from = null)
    Parameters
    Type Name Description
    Sender sender

    sender.

    EmailRecipients recipients

    recipients.

    List<string> attachments

    attachments.

    Guid inboxId

    inboxId (required).

    DateTime createdAt

    createdAt (required).

    List<string> to

    to (required).

    List<string> cc

    cc.

    List<string> bcc

    bcc.

    string messageId

    messageId.

    Guid? domainId

    domainId.

    bool? favourite

    favourite.

    string inReplyTo

    inReplyTo.

    Guid? plusAddress

    plusAddress.

    long? sizeBytes

    sizeBytes.

    bool read

    read (required).

    string bodyExcerpt

    bodyExcerpt.

    string textExcerpt

    textExcerpt.

    List<string> bodyPartContentTypes

    bodyPartContentTypes.

    string bodyMD5Hash

    bodyMD5Hash.

    bool teamAccess

    teamAccess (required).

    string subject

    subject.

    Guid id

    id (required).

    Guid? threadId

    threadId.

    string from

    from (required).

    Properties

    View Source

    Attachments

    Gets or Sets Attachments

    Declaration
    [DataMember(Name = "attachments", EmitDefaultValue = true)]
    public List<string> Attachments { get; set; }
    Property Value
    Type Description
    List<string>
    View Source

    Bcc

    Gets or Sets Bcc

    Declaration
    [DataMember(Name = "bcc", EmitDefaultValue = true)]
    public List<string> Bcc { get; set; }
    Property Value
    Type Description
    List<string>
    View Source

    BodyExcerpt

    Gets or Sets BodyExcerpt

    Declaration
    [DataMember(Name = "bodyExcerpt", EmitDefaultValue = true)]
    public string BodyExcerpt { get; set; }
    Property Value
    Type Description
    string
    View Source

    BodyMD5Hash

    Gets or Sets BodyMD5Hash

    Declaration
    [DataMember(Name = "bodyMD5Hash", EmitDefaultValue = true)]
    public string BodyMD5Hash { get; set; }
    Property Value
    Type Description
    string
    View Source

    BodyPartContentTypes

    Gets or Sets BodyPartContentTypes

    Declaration
    [DataMember(Name = "bodyPartContentTypes", EmitDefaultValue = true)]
    public List<string> BodyPartContentTypes { get; set; }
    Property Value
    Type Description
    List<string>
    View Source

    Cc

    Gets or Sets Cc

    Declaration
    [DataMember(Name = "cc", EmitDefaultValue = true)]
    public List<string> Cc { get; set; }
    Property Value
    Type Description
    List<string>
    View Source

    CreatedAt

    Gets or Sets CreatedAt

    Declaration
    [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
    public DateTime CreatedAt { get; set; }
    Property Value
    Type Description
    DateTime
    View Source

    DomainId

    Gets or Sets DomainId

    Declaration
    [DataMember(Name = "domainId", EmitDefaultValue = true)]
    public Guid? DomainId { get; set; }
    Property Value
    Type Description
    Guid?
    View Source

    Favourite

    Gets or Sets Favourite

    Declaration
    [DataMember(Name = "favourite", EmitDefaultValue = true)]
    public bool? Favourite { get; set; }
    Property Value
    Type Description
    bool?
    View Source

    From

    Gets or Sets From

    Declaration
    [DataMember(Name = "from", IsRequired = true, EmitDefaultValue = true)]
    public string From { get; set; }
    Property Value
    Type Description
    string
    View Source

    Id

    Gets or Sets Id

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

    InReplyTo

    Gets or Sets InReplyTo

    Declaration
    [DataMember(Name = "inReplyTo", EmitDefaultValue = true)]
    public string InReplyTo { get; set; }
    Property Value
    Type Description
    string
    View Source

    InboxId

    Gets or Sets InboxId

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

    MessageId

    Gets or Sets MessageId

    Declaration
    [DataMember(Name = "messageId", EmitDefaultValue = true)]
    public string MessageId { get; set; }
    Property Value
    Type Description
    string
    View Source

    PlusAddress

    Gets or Sets PlusAddress

    Declaration
    [DataMember(Name = "plusAddress", EmitDefaultValue = true)]
    public Guid? PlusAddress { get; set; }
    Property Value
    Type Description
    Guid?
    View Source

    Read

    Gets or Sets Read

    Declaration
    [DataMember(Name = "read", IsRequired = true, EmitDefaultValue = true)]
    public bool Read { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Recipients

    Gets or Sets Recipients

    Declaration
    [DataMember(Name = "recipients", EmitDefaultValue = true)]
    public EmailRecipients Recipients { get; set; }
    Property Value
    Type Description
    EmailRecipients
    View Source

    Sender

    Gets or Sets Sender

    Declaration
    [DataMember(Name = "sender", EmitDefaultValue = true)]
    public Sender Sender { get; set; }
    Property Value
    Type Description
    Sender
    View Source

    SizeBytes

    Gets or Sets SizeBytes

    Declaration
    [DataMember(Name = "sizeBytes", EmitDefaultValue = true)]
    public long? SizeBytes { get; set; }
    Property Value
    Type Description
    long?
    View Source

    Subject

    Gets or Sets Subject

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

    TeamAccess

    Gets or Sets TeamAccess

    Declaration
    [DataMember(Name = "teamAccess", IsRequired = true, EmitDefaultValue = true)]
    public bool TeamAccess { get; set; }
    Property Value
    Type Description
    bool
    View Source

    TextExcerpt

    Gets or Sets TextExcerpt

    Declaration
    [DataMember(Name = "textExcerpt", EmitDefaultValue = true)]
    public string TextExcerpt { get; set; }
    Property Value
    Type Description
    string
    View Source

    ThreadId

    Gets or Sets ThreadId

    Declaration
    [DataMember(Name = "threadId", EmitDefaultValue = true)]
    public Guid? ThreadId { get; set; }
    Property Value
    Type Description
    Guid?
    View Source

    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 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()

    Implements

    IValidatableObject
    • View Source
    In this article
    Back to top See MailSlurp website for more information.