Class PhoneNumberProjection
Phone number projection
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "PhoneNumberProjection")]
public class PhoneNumberProjection : IValidatableObject
Constructors
View SourcePhoneNumberProjection()
Initializes a new instance of the PhoneNumberProjection class.
Declaration
[JsonConstructor]
protected PhoneNumberProjection()
PhoneNumberProjection(string, Guid, Guid, PhoneCountryEnum, DateTime, string, string, string, string, string, string)
Initializes a new instance of the PhoneNumberProjection class.
Declaration
public PhoneNumberProjection(string name = null, Guid id = default, Guid userId = default, PhoneNumberProjection.PhoneCountryEnum phoneCountry = (PhoneNumberProjection.PhoneCountryEnum)0, DateTime createdAt = default, string providerLabel = null, string lineType = null, string carrierName = null, string mobileCountryCode = null, string mobileNetworkCode = null, string phoneNumber = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | name. |
| Guid | id | id (required). |
| Guid | userId | userId (required). |
| PhoneNumberProjection.PhoneCountryEnum | phoneCountry | phoneCountry (required). |
| DateTime | createdAt | createdAt (required). |
| string | providerLabel | providerLabel. |
| string | lineType | lineType. |
| string | carrierName | carrierName. |
| string | mobileCountryCode | mobileCountryCode. |
| string | mobileNetworkCode | mobileNetworkCode. |
| string | phoneNumber | phoneNumber (required). |
Properties
View SourceCarrierName
Gets or Sets CarrierName
Declaration
[DataMember(Name = "carrierName", EmitDefaultValue = false)]
public string CarrierName { 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 |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
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 |
Name
Gets or Sets Name
Declaration
[DataMember(Name = "name", EmitDefaultValue = false)]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PhoneCountry
Gets or Sets PhoneCountry
Declaration
[DataMember(Name = "phoneCountry", IsRequired = true, EmitDefaultValue = true)]
public PhoneNumberProjection.PhoneCountryEnum PhoneCountry { get; set; }
Property Value
| Type | Description |
|---|---|
| PhoneNumberProjection.PhoneCountryEnum |
PhoneNumber
Gets or Sets PhoneNumber
Declaration
[DataMember(Name = "phoneNumber", IsRequired = true, EmitDefaultValue = true)]
public string PhoneNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ProviderLabel
Gets or Sets ProviderLabel
Declaration
[DataMember(Name = "providerLabel", EmitDefaultValue = false)]
public string ProviderLabel { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UserId
Gets or Sets UserId
Declaration
[DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
public Guid UserId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
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 |