Search Results for

    Show / Hide Table of Contents

    Class AttachmentProjection

    Email attachment data

    Inheritance
    object
    AttachmentProjection
    Implements
    IEquatable<AttachmentProjection>
    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 = "AttachmentProjection")]
    public class AttachmentProjection : IEquatable<AttachmentProjection>, IValidatableObject

    Constructors

    View Source

    AttachmentProjection()

    Initializes a new instance of the AttachmentProjection class.

    Declaration
    [JsonConstructor]
    protected AttachmentProjection()
    View Source

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

    Initializes a new instance of the AttachmentProjection class.

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

    createdAt (required).

    DateTime updatedAt

    updatedAt (required).

    System.Guid userId

    userId (required).

    string contentId

    Content ID of attachment..

    string attachmentId

    Attachment ID (required).

    string name

    name.

    long? contentLength

    Content length of attachment in bytes.

    string contentType

    Content type of attachment..

    Properties

    View Source

    AttachmentId

    Attachment ID

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

    Attachment ID

    View Source

    ContentId

    Content ID of attachment.

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

    Content ID of attachment.

    View Source

    ContentLength

    Content length of attachment in bytes

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

    Content length of attachment in bytes

    View Source

    ContentType

    Content type of attachment.

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

    Content type of attachment.

    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

    Name

    Gets or Sets Name

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

    UpdatedAt

    Gets or Sets UpdatedAt

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

    UserId

    Gets or Sets UserId

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

    Methods

    View Source

    Equals(AttachmentProjection)

    Returns true if AttachmentProjection instances are equal

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

    Instance of AttachmentProjection 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.