Search Results for

    Show / Hide Table of Contents

    Class EmergencyAddress

    EmergencyAddress

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

    Constructors

    View Source

    EmergencyAddress()

    Initializes a new instance of the EmergencyAddress class.

    Declaration
    [JsonConstructor]
    protected EmergencyAddress()
    View Source

    EmergencyAddress(Guid, string, Guid, string, string, string, string, string, string, PhoneCountryEnum, string, DateTime, DateTime)

    Initializes a new instance of the EmergencyAddress class.

    Declaration
    public EmergencyAddress(Guid id = default, string sid = null, Guid userId = default, string displayName = null, string customerName = null, string address1 = null, string city = null, string region = null, string postalCode = null, EmergencyAddress.PhoneCountryEnum phoneCountry = (EmergencyAddress.PhoneCountryEnum)0, string accountSid = null, DateTime createdAt = default, DateTime updatedAt = default)
    Parameters
    Type Name Description
    System.Guid id

    id.

    string sid

    sid (required).

    System.Guid userId

    userId (required).

    string displayName

    displayName (required).

    string customerName

    customerName (required).

    string address1

    address1 (required).

    string city

    city (required).

    string region

    region (required).

    string postalCode

    postalCode (required).

    EmergencyAddress.PhoneCountryEnum phoneCountry

    phoneCountry (required).

    string accountSid

    accountSid (required).

    DateTime createdAt

    createdAt (required).

    DateTime updatedAt

    updatedAt (required).

    Properties

    View Source

    AccountSid

    Gets or Sets AccountSid

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

    Address1

    Gets or Sets Address1

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

    City

    Gets or Sets City

    Declaration
    [DataMember(Name = "city", IsRequired = true, EmitDefaultValue = true)]
    public string City { get; set; }
    Property Value
    Type Description
    string
    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

    CustomerName

    Gets or Sets CustomerName

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

    DisplayName

    Gets or Sets DisplayName

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

    Id

    Gets or Sets Id

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

    PhoneCountry

    Gets or Sets PhoneCountry

    Declaration
    [DataMember(Name = "phoneCountry", IsRequired = true, EmitDefaultValue = true)]
    public EmergencyAddress.PhoneCountryEnum PhoneCountry { get; set; }
    Property Value
    Type Description
    EmergencyAddress.PhoneCountryEnum
    View Source

    PostalCode

    Gets or Sets PostalCode

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

    Region

    Gets or Sets Region

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

    Sid

    Gets or Sets Sid

    Declaration
    [DataMember(Name = "sid", IsRequired = true, EmitDefaultValue = true)]
    public string Sid { 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(EmergencyAddress)

    Returns true if EmergencyAddress instances are equal

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

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