Class PhonePoolDto
PhonePoolDto
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "PhonePoolDto")]
public class PhonePoolDto : IValidatableObject
Constructors
View SourcePhonePoolDto()
Initializes a new instance of the PhonePoolDto class.
Declaration
[JsonConstructor]
protected PhonePoolDto()
PhonePoolDto(Guid, Guid, string, string, DateTime, DateTime, int, int, int)
Initializes a new instance of the PhonePoolDto class.
Declaration
public PhonePoolDto(Guid id = default, Guid userId = default, string name = null, string description = null, DateTime createdAt = default, DateTime updatedAt = default, int memberCount = 0, int availableMemberCount = 0, int leasedMemberCount = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | id (required). |
| Guid | userId | userId (required). |
| string | name | name (required). |
| string | description | description. |
| DateTime | createdAt | createdAt (required). |
| DateTime | updatedAt | updatedAt (required). |
| int | memberCount | memberCount (required). |
| int | availableMemberCount | availableMemberCount (required). |
| int | leasedMemberCount | leasedMemberCount (required). |
Properties
View SourceAvailableMemberCount
Gets or Sets AvailableMemberCount
Declaration
[DataMember(Name = "availableMemberCount", IsRequired = true, EmitDefaultValue = true)]
public int AvailableMemberCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
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 |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
LeasedMemberCount
Gets or Sets LeasedMemberCount
Declaration
[DataMember(Name = "leasedMemberCount", IsRequired = true, EmitDefaultValue = true)]
public int LeasedMemberCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
MemberCount
Gets or Sets MemberCount
Declaration
[DataMember(Name = "memberCount", IsRequired = true, EmitDefaultValue = true)]
public int MemberCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Name
Gets or Sets Name
Declaration
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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 |