Class AvailablePhoneNumberDto
AvailablePhoneNumberDto
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "AvailablePhoneNumberDto")]
public class AvailablePhoneNumberDto : IValidatableObject
Constructors
View SourceAvailablePhoneNumberDto()
Initializes a new instance of the AvailablePhoneNumberDto class.
Declaration
[JsonConstructor]
protected AvailablePhoneNumberDto()
AvailablePhoneNumberDto(string, PhoneCountryEnum, PhoneVariantEnum?, string, string, string, string, string)
Initializes a new instance of the AvailablePhoneNumberDto class.
Declaration
public AvailablePhoneNumberDto(string phoneNumber = null, AvailablePhoneNumberDto.PhoneCountryEnum phoneCountry = (AvailablePhoneNumberDto.PhoneCountryEnum)0, AvailablePhoneNumberDto.PhoneVariantEnum? phoneVariant = null, string lineType = null, string carrierName = null, string mobileCountryCode = null, string mobileNetworkCode = null, string providerLabel = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | phoneNumber | phoneNumber (required). |
| AvailablePhoneNumberDto.PhoneCountryEnum | phoneCountry | phoneCountry (required). |
| AvailablePhoneNumberDto.PhoneVariantEnum? | phoneVariant | phoneVariant. |
| string | lineType | lineType. |
| string | carrierName | carrierName. |
| string | mobileCountryCode | mobileCountryCode. |
| string | mobileNetworkCode | mobileNetworkCode. |
| string | providerLabel | providerLabel. |
Properties
View SourceCarrierName
Gets or Sets CarrierName
Declaration
[DataMember(Name = "carrierName", EmitDefaultValue = false)]
public string CarrierName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LineType
Gets or Sets LineType
Declaration
[DataMember(Name = "lineType", EmitDefaultValue = false)]
public string LineType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MobileCountryCode
Gets or Sets MobileCountryCode
Declaration
[DataMember(Name = "mobileCountryCode", EmitDefaultValue = false)]
public string MobileCountryCode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MobileNetworkCode
Gets or Sets MobileNetworkCode
Declaration
[DataMember(Name = "mobileNetworkCode", EmitDefaultValue = false)]
public string MobileNetworkCode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PhoneCountry
Gets or Sets PhoneCountry
Declaration
[DataMember(Name = "phoneCountry", IsRequired = true, EmitDefaultValue = true)]
public AvailablePhoneNumberDto.PhoneCountryEnum PhoneCountry { get; set; }
Property Value
| Type | Description |
|---|---|
| AvailablePhoneNumberDto.PhoneCountryEnum |
PhoneNumber
Gets or Sets PhoneNumber
Declaration
[DataMember(Name = "phoneNumber", IsRequired = true, EmitDefaultValue = true)]
public string PhoneNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PhoneVariant
Gets or Sets PhoneVariant
Declaration
[DataMember(Name = "phoneVariant", EmitDefaultValue = false)]
public AvailablePhoneNumberDto.PhoneVariantEnum? PhoneVariant { get; set; }
Property Value
| Type | Description |
|---|---|
| AvailablePhoneNumberDto.PhoneVariantEnum? |
ProviderLabel
Gets or Sets ProviderLabel
Declaration
[DataMember(Name = "providerLabel", EmitDefaultValue = false)]
public string ProviderLabel { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 |