Search Results for

    Show / Hide Table of Contents

    Class AliasDto

    Email alias representation

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

    Constructors

    View Source

    AliasDto()

    Initializes a new instance of the AliasDto class.

    Declaration
    [JsonConstructor]
    protected AliasDto()
    View Source

    AliasDto(Guid, string, string, Guid, Guid, string, bool?, bool, Guid?, DateTime?, DateTime?)

    Initializes a new instance of the AliasDto class.

    Declaration
    public AliasDto(Guid id = default, string emailAddress = null, string maskedEmailAddress = null, Guid userId = default, Guid inboxId = default, string name = null, bool? useThreads = null, bool isVerified = false, Guid? domainId = null, DateTime? createdAt = null, DateTime? updatedAt = null)
    Parameters
    Type Name Description
    System.Guid id

    id (required).

    string emailAddress

    The alias's email address for receiving email (required).

    string maskedEmailAddress

    The underlying email address that is hidden and will received forwarded email.

    System.Guid userId

    userId (required).

    System.Guid inboxId

    Inbox that is associated with the alias (required).

    string name

    name.

    bool? useThreads

    If alias will generate response threads or not when email are received by it.

    bool isVerified

    Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account (required).

    System.Guid? domainId

    Domain ID associated with the alias.

    DateTime? createdAt

    createdAt.

    DateTime? updatedAt

    updatedAt.

    Properties

    View Source

    CreatedAt

    Gets or Sets CreatedAt

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

    DomainId

    Domain ID associated with the alias

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

    Domain ID associated with the alias

    View Source

    EmailAddress

    The alias's email address for receiving email

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

    The alias's email address for receiving email

    View Source

    Id

    Gets or Sets Id

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

    InboxId

    Inbox that is associated with the alias

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

    Inbox that is associated with the alias

    View Source

    IsVerified

    Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account

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

    Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account

    View Source

    MaskedEmailAddress

    The underlying email address that is hidden and will received forwarded email

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

    The underlying email address that is hidden and will received forwarded email

    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", 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
    View Source

    UseThreads

    If alias will generate response threads or not when email are received by it

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

    If alias will generate response threads or not when email are received by it

    Methods

    View Source

    Equals(AliasDto)

    Returns true if AliasDto instances are equal

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

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