Search Results for

    Show / Hide Table of Contents

    Class AttachmentEntityDto

    DTO representation of an attachment.

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

    Constructors

    View Source

    AttachmentEntityDto()

    Initializes a new instance of the AttachmentEntityDto class.

    Declaration
    [JsonConstructor]
    protected AttachmentEntityDto()
    View Source

    AttachmentEntityDto(Guid, string, Guid, string, long?, string, string, Guid?, DateTime, DateTime)

    Initializes a new instance of the AttachmentEntityDto class.

    Declaration
    public AttachmentEntityDto(Guid id = default, string attachmentId = null, Guid userId = default, string contentType = null, long? contentLength = null, string contentId = null, string name = null, Guid? inboxId = null, DateTime createdAt = default, DateTime updatedAt = default)
    Parameters
    Type Name Description
    Guid id

    The unique identifier for this attachment. (required).

    string attachmentId

    The identifier of the attachment file (required).

    Guid userId

    The user identifier associated with this attachment. (required).

    string contentType

    The content type of the attachment..

    long? contentLength

    The content length of the attachment in bytes..

    string contentId

    The content identifier, which is a unique ID for the content part of the email..

    string name

    The name of the attachment file..

    Guid? inboxId

    The inbox identifier associated with this attachment..

    DateTime createdAt

    The timestamp when this attachment was created. (required).

    DateTime updatedAt

    The timestamp when this attachment was last updated. (required).

    Properties

    View Source

    AttachmentId

    The identifier of the attachment file

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

    The identifier of the attachment file

    View Source

    ContentId

    The content identifier, which is a unique ID for the content part of the email.

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

    The content identifier, which is a unique ID for the content part of the email.

    View Source

    ContentLength

    The content length of the attachment in bytes.

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

    The content length of the attachment in bytes.

    View Source

    ContentType

    The content type of the attachment.

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

    The content type of the attachment.

    View Source

    CreatedAt

    The timestamp when this attachment was created.

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

    The timestamp when this attachment was created.

    View Source

    Id

    The unique identifier for this attachment.

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

    The unique identifier for this attachment.

    View Source

    InboxId

    The inbox identifier associated with this attachment.

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

    The inbox identifier associated with this attachment.

    View Source

    Name

    The name of the attachment file.

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

    The name of the attachment file.

    View Source

    UpdatedAt

    The timestamp when this attachment was last updated.

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

    The timestamp when this attachment was last updated.

    View Source

    UserId

    The user identifier associated with this attachment.

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

    The user identifier associated with this attachment.

    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.