Class EmergencyAddressDto
EmergencyAddressDto
Inherited Members
object.Equals(object, object)
object.MemberwiseClone()
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "EmergencyAddressDto")]
public class EmergencyAddressDto : IEquatable<EmergencyAddressDto>, IValidatableObject
Constructors
View SourceEmergencyAddressDto()
Initializes a new instance of the EmergencyAddressDto class.
Declaration
[JsonConstructor]
protected EmergencyAddressDto()
EmergencyAddressDto(Guid, string, PhoneCountryEnum)
Initializes a new instance of the EmergencyAddressDto class.
Declaration
public EmergencyAddressDto(Guid id = default, string address1 = null, EmergencyAddressDto.PhoneCountryEnum phoneCountry = (EmergencyAddressDto.PhoneCountryEnum)0)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | id (required). |
string | address1 | address1 (required). |
EmergencyAddressDto.PhoneCountryEnum | phoneCountry | phoneCountry (required). |
Properties
View SourceAddress1
Gets or Sets Address1
Declaration
[DataMember(Name = "address1", IsRequired = true, EmitDefaultValue = true)]
public string Address1 { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
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 EmergencyAddressDto.PhoneCountryEnum PhoneCountry { get; set; }
Property Value
Type | Description |
---|---|
EmergencyAddressDto.PhoneCountryEnum |
Methods
View SourceEquals(EmergencyAddressDto)
Returns true if EmergencyAddressDto instances are equal
Declaration
public bool Equals(EmergencyAddressDto input)
Parameters
Type | Name | Description |
---|---|---|
EmergencyAddressDto | input | Instance of EmergencyAddressDto 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
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.ComponentModel.DataAnnotations.IValidatableObject