Class EmergencyAddress
EmergencyAddress
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "EmergencyAddress")]
public class EmergencyAddress : IEquatable<EmergencyAddress>, IValidatableObject
Constructors
View SourceEmergencyAddress()
Initializes a new instance of the EmergencyAddress class.
Declaration
[JsonConstructor]
protected EmergencyAddress()
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 SourceAccountSid
Gets or Sets AccountSid
Declaration
[DataMember(Name = "accountSid", IsRequired = true, EmitDefaultValue = true)]
public string AccountSid { get; set; }
Property Value
Type | Description |
---|---|
string |
Address1
Gets or Sets Address1
Declaration
[DataMember(Name = "address1", IsRequired = true, EmitDefaultValue = true)]
public string Address1 { get; set; }
Property Value
Type | Description |
---|---|
string |
City
Gets or Sets City
Declaration
[DataMember(Name = "city", IsRequired = true, EmitDefaultValue = true)]
public string City { get; set; }
Property Value
Type | Description |
---|---|
string |
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
CustomerName
Gets or Sets CustomerName
Declaration
[DataMember(Name = "customerName", IsRequired = true, EmitDefaultValue = true)]
public string CustomerName { get; set; }
Property Value
Type | Description |
---|---|
string |
DisplayName
Gets or Sets DisplayName
Declaration
[DataMember(Name = "displayName", IsRequired = true, EmitDefaultValue = true)]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", EmitDefaultValue = false)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
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 |
PostalCode
Gets or Sets PostalCode
Declaration
[DataMember(Name = "postalCode", IsRequired = true, EmitDefaultValue = true)]
public string PostalCode { get; set; }
Property Value
Type | Description |
---|---|
string |
Region
Gets or Sets Region
Declaration
[DataMember(Name = "region", IsRequired = true, EmitDefaultValue = true)]
public string Region { get; set; }
Property Value
Type | Description |
---|---|
string |
Sid
Gets or Sets Sid
Declaration
[DataMember(Name = "sid", IsRequired = true, EmitDefaultValue = true)]
public string Sid { get; set; }
Property Value
Type | Description |
---|---|
string |
UpdatedAt
Gets or Sets UpdatedAt
Declaration
[DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime UpdatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
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 SourceEquals(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 |
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
View SourceGetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Hash code |
Overrides
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | String presentation of the object |
Overrides
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 |