Class PhoneNumberDto
PhoneNumberDto
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "PhoneNumberDto")]
public class PhoneNumberDto : IValidatableObject
Constructors
View SourcePhoneNumberDto()
Initializes a new instance of the PhoneNumberDto class.
Declaration
[JsonConstructor]
protected PhoneNumberDto()
PhoneNumberDto(Guid, string, string, Guid, Guid, Guid, string, PhoneCountryEnum, Guid, DateTime, DateTime, bool)
Initializes a new instance of the PhoneNumberDto class.
Declaration
public PhoneNumberDto(Guid id = default, string name = null, string description = null, Guid userId = default, Guid complianceAddress = default, Guid emergencyAddress = default, string phoneNumber = null, PhoneNumberDto.PhoneCountryEnum phoneCountry = (PhoneNumberDto.PhoneCountryEnum)0, Guid phonePlan = default, DateTime createdAt = default, DateTime updatedAt = default, bool favourite = false)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | id (required). |
string | name | name. |
string | description | description. |
Guid | userId | userId (required). |
Guid | complianceAddress | complianceAddress. |
Guid | emergencyAddress | emergencyAddress. |
string | phoneNumber | phoneNumber (required). |
PhoneNumberDto.PhoneCountryEnum | phoneCountry | phoneCountry (required). |
Guid | phonePlan | phonePlan (required). |
DateTime | createdAt | createdAt (required). |
DateTime | updatedAt | updatedAt (required). |
bool | favourite | favourite (required). |
Properties
View SourceComplianceAddress
Gets or Sets ComplianceAddress
Declaration
[DataMember(Name = "complianceAddress", EmitDefaultValue = false)]
public Guid ComplianceAddress { get; set; }
Property Value
Type | Description |
---|---|
Guid |
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Description
Gets or Sets Description
Declaration
[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
EmergencyAddress
Gets or Sets EmergencyAddress
Declaration
[DataMember(Name = "emergencyAddress", EmitDefaultValue = false)]
public Guid EmergencyAddress { get; set; }
Property Value
Type | Description |
---|---|
Guid |
Favourite
Gets or Sets Favourite
Declaration
[DataMember(Name = "favourite", IsRequired = true, EmitDefaultValue = true)]
public bool Favourite { get; set; }
Property Value
Type | Description |
---|---|
bool |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
Guid |
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 PhoneNumberDto.PhoneCountryEnum PhoneCountry { get; set; }
Property Value
Type | Description |
---|---|
PhoneNumberDto.PhoneCountryEnum |
PhoneNumber
Gets or Sets PhoneNumber
Declaration
[DataMember(Name = "phoneNumber", IsRequired = true, EmitDefaultValue = true)]
public string PhoneNumber { get; set; }
Property Value
Type | Description |
---|---|
string |
PhonePlan
Gets or Sets PhonePlan
Declaration
[DataMember(Name = "phonePlan", IsRequired = true, EmitDefaultValue = true)]
public Guid PhonePlan { get; set; }
Property Value
Type | Description |
---|---|
Guid |
UpdatedAt
Gets or Sets UpdatedAt
Declaration
[DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime UpdatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
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 |