Class PhonePoolLeaseDto
PhonePoolLeaseDto
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "PhonePoolLeaseDto")]
public class PhonePoolLeaseDto : IValidatableObject
Constructors
View SourcePhonePoolLeaseDto()
Initializes a new instance of the PhonePoolLeaseDto class.
Declaration
[JsonConstructor]
protected PhonePoolLeaseDto()
PhonePoolLeaseDto(Guid, Guid, Guid, string, PhoneCountryEnum, string, string, string, DateTime, DateTime)
Initializes a new instance of the PhonePoolLeaseDto class.
Declaration
public PhonePoolLeaseDto(Guid id = default, Guid poolId = default, Guid phoneNumberId = default, string phoneNumber = null, PhonePoolLeaseDto.PhoneCountryEnum phoneCountry = (PhonePoolLeaseDto.PhoneCountryEnum)0, string phoneName = null, string leaseName = null, string leaseOwner = null, DateTime leasedAt = default, DateTime expiresAt = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | id (required). |
| Guid | poolId | poolId (required). |
| Guid | phoneNumberId | phoneNumberId (required). |
| string | phoneNumber | phoneNumber (required). |
| PhonePoolLeaseDto.PhoneCountryEnum | phoneCountry | phoneCountry (required). |
| string | phoneName | phoneName. |
| string | leaseName | leaseName. |
| string | leaseOwner | leaseOwner. |
| DateTime | leasedAt | leasedAt (required). |
| DateTime | expiresAt | expiresAt. |
Properties
View SourceExpiresAt
Gets or Sets ExpiresAt
Declaration
[DataMember(Name = "expiresAt", EmitDefaultValue = false)]
public DateTime ExpiresAt { 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 |
LeaseName
Gets or Sets LeaseName
Declaration
[DataMember(Name = "leaseName", EmitDefaultValue = false)]
public string LeaseName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LeaseOwner
Gets or Sets LeaseOwner
Declaration
[DataMember(Name = "leaseOwner", EmitDefaultValue = false)]
public string LeaseOwner { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LeasedAt
Gets or Sets LeasedAt
Declaration
[DataMember(Name = "leasedAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime LeasedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
PhoneCountry
Gets or Sets PhoneCountry
Declaration
[DataMember(Name = "phoneCountry", IsRequired = true, EmitDefaultValue = true)]
public PhonePoolLeaseDto.PhoneCountryEnum PhoneCountry { get; set; }
Property Value
| Type | Description |
|---|---|
| PhonePoolLeaseDto.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 |