Class PhoneNumberValidationDto
PhoneNumberValidationDto
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "PhoneNumberValidationDto")]
public class PhoneNumberValidationDto : IValidatableObject
Constructors
View SourcePhoneNumberValidationDto()
Initializes a new instance of the PhoneNumberValidationDto class.
Declaration
[JsonConstructor]
protected PhoneNumberValidationDto()
PhoneNumberValidationDto(string, string, string, bool, List<string>)
Initializes a new instance of the PhoneNumberValidationDto class.
Declaration
public PhoneNumberValidationDto(string countryCode = null, string countryPrefix = null, string phoneNumber = null, bool isValid = false, List<string> validationErrors = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | countryCode | countryCode. |
| string | countryPrefix | countryPrefix. |
| string | phoneNumber | phoneNumber (required). |
| bool | isValid | isValid (required). |
| List<string> | validationErrors | validationErrors. |
Properties
View SourceCountryCode
Gets or Sets CountryCode
Declaration
[DataMember(Name = "countryCode", EmitDefaultValue = false)]
public string CountryCode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CountryPrefix
Gets or Sets CountryPrefix
Declaration
[DataMember(Name = "countryPrefix", EmitDefaultValue = false)]
public string CountryPrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsValid
Gets or Sets IsValid
Declaration
[DataMember(Name = "isValid", IsRequired = true, EmitDefaultValue = true)]
public bool IsValid { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
PhoneNumber
Gets or Sets PhoneNumber
Declaration
[DataMember(Name = "phoneNumber", IsRequired = true, EmitDefaultValue = true)]
public string PhoneNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ValidationErrors
Gets or Sets ValidationErrors
Declaration
[DataMember(Name = "validationErrors", EmitDefaultValue = false)]
public List<string> ValidationErrors { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> |
Methods
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 |