Class PhonePoolMemberDto
PhonePoolMemberDto
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "PhonePoolMemberDto")]
public class PhonePoolMemberDto : IValidatableObject
Constructors
View SourcePhonePoolMemberDto()
Initializes a new instance of the PhonePoolMemberDto class.
Declaration
[JsonConstructor]
protected PhonePoolMemberDto()
PhonePoolMemberDto(Guid, Guid, Guid, string, PhoneCountryEnum, string, DateTime, PhonePoolLeaseDto)
Initializes a new instance of the PhonePoolMemberDto class.
Declaration
public PhonePoolMemberDto(Guid id = default, Guid poolId = default, Guid phoneNumberId = default, string phoneNumber = null, PhonePoolMemberDto.PhoneCountryEnum phoneCountry = (PhonePoolMemberDto.PhoneCountryEnum)0, string phoneName = null, DateTime createdAt = default, PhonePoolLeaseDto activeLease = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | id (required). |
| Guid | poolId | poolId (required). |
| Guid | phoneNumberId | phoneNumberId (required). |
| string | phoneNumber | phoneNumber (required). |
| PhonePoolMemberDto.PhoneCountryEnum | phoneCountry | phoneCountry (required). |
| string | phoneName | phoneName. |
| DateTime | createdAt | createdAt (required). |
| PhonePoolLeaseDto | activeLease | activeLease. |
Properties
View SourceActiveLease
Gets or Sets ActiveLease
Declaration
[DataMember(Name = "activeLease", EmitDefaultValue = false)]
public PhonePoolLeaseDto ActiveLease { get; set; }
Property Value
| Type | Description |
|---|---|
| PhonePoolLeaseDto |
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 |
PhoneCountry
Gets or Sets PhoneCountry
Declaration
[DataMember(Name = "phoneCountry", IsRequired = true, EmitDefaultValue = true)]
public PhonePoolMemberDto.PhoneCountryEnum PhoneCountry { get; set; }
Property Value
| Type | Description |
|---|---|
| PhonePoolMemberDto.PhoneCountryEnum |
PhoneName
Gets or Sets PhoneName
Declaration
[DataMember(Name = "phoneName", EmitDefaultValue = false)]
public string PhoneName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PhoneNumber
Gets or Sets PhoneNumber
Declaration
[DataMember(Name = "phoneNumber", IsRequired = true, EmitDefaultValue = true)]
public string PhoneNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PhoneNumberId
Gets or Sets PhoneNumberId
Declaration
[DataMember(Name = "phoneNumberId", IsRequired = true, EmitDefaultValue = true)]
public Guid PhoneNumberId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
PoolId
Gets or Sets PoolId
Declaration
[DataMember(Name = "poolId", IsRequired = true, EmitDefaultValue = true)]
public Guid PoolId { 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 |