Search Results for

    Show / Hide Table of Contents

    Class DownloadAttachmentDto

    Content of attachment

    Inheritance
    object
    DownloadAttachmentDto
    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 = "DownloadAttachmentDto")]
    public class DownloadAttachmentDto : IValidatableObject

    Constructors

    View Source

    DownloadAttachmentDto()

    Initializes a new instance of the DownloadAttachmentDto class.

    Declaration
    [JsonConstructor]
    protected DownloadAttachmentDto()
    View Source

    DownloadAttachmentDto(string, string, long)

    Initializes a new instance of the DownloadAttachmentDto class.

    Declaration
    public DownloadAttachmentDto(string base64FileContents = null, string contentType = null, long sizeBytes = 0)
    Parameters
    Type Name Description
    string base64FileContents

    Base64 encoded string of attachment bytes. Decode the base64 encoded string to get the raw contents. If the file has a content type such as text/html you can read the contents directly by converting it to string using utf-8 encoding. (required).

    string contentType

    Content type of attachment. Examples are image/png, application/msword, text/csv etc. (required).

    long sizeBytes

    Size in bytes of attachment content (required).

    Properties

    View Source

    Base64FileContents

    Base64 encoded string of attachment bytes. Decode the base64 encoded string to get the raw contents. If the file has a content type such as text/html you can read the contents directly by converting it to string using utf-8 encoding.

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

    Base64 encoded string of attachment bytes. Decode the base64 encoded string to get the raw contents. If the file has a content type such as text/html you can read the contents directly by converting it to string using utf-8 encoding.

    View Source

    ContentType

    Content type of attachment. Examples are image/png, application/msword, text/csv etc.

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

    Content type of attachment. Examples are image/png, application/msword, text/csv etc.

    View Source

    SizeBytes

    Size in bytes of attachment content

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

    Size in bytes of attachment content

    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.