Search Results for

    Show / Hide Table of Contents

    Class ImapServerFetchItem

    IMAP fetch content in raw format

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

    Constructors

    View Source

    ImapServerFetchItem()

    Initializes a new instance of the ImapServerFetchItem class.

    Declaration
    [JsonConstructor]
    protected ImapServerFetchItem()
    View Source

    ImapServerFetchItem(string, Guid, long, long, bool)

    Initializes a new instance of the ImapServerFetchItem class.

    Declaration
    public ImapServerFetchItem(string content = null, Guid id = default, long uid = 0, long seqNum = 0, bool read = false)
    Parameters
    Type Name Description
    string content

    Content of the email (required).

    System.Guid id

    ID of the email (required).

    long uid

    UID of the email (required).

    long seqNum

    Sequence number of the email (required).

    bool read

    Read status of the email (required).

    Properties

    View Source

    Content

    Content of the email

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

    Content of the email

    View Source

    Id

    ID of the email

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

    ID of the email

    View Source

    Read

    Read status of the email

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

    Read status of the email

    View Source

    SeqNum

    Sequence number of the email

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

    Sequence number of the email

    View Source

    Uid

    UID of the email

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

    UID of the email

    Methods

    View Source

    Equals(ImapServerFetchItem)

    Returns true if ImapServerFetchItem instances are equal

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

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