Class PhoneNumber
The phone number include the number and country code.
[DataContract]
public class PhoneNumber
  - Inheritance
 - 
      
      PhoneNumber
 
- Inherited Members
 
Constructors
PhoneNumber(string, string)
Initializes a new instance of the PhoneNumber class.
public PhoneNumber(string countryCode = null, string number = null)
  Parameters
Properties
CountryCode
Gets or sets the country code.
[DataMember(Name = "countryCode", EmitDefaultValue = true)]
public string CountryCode { get; set; }
  Property Value
Number
Gets or sets the number.
[DataMember(Name = "number", EmitDefaultValue = true)]
public string Number { get; set; }
  Property Value
Methods
ToJson()
Returns the JSON string presentation of the object.
public virtual string ToJson()
  Returns
- string
 JSON string presentation of the object.