Class TotpDeviceDto
TotpDeviceDto
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "TotpDeviceDto")]
public class TotpDeviceDto : IValidatableObject
Constructors
View SourceTotpDeviceDto()
Initializes a new instance of the TotpDeviceDto class.
Declaration
[JsonConstructor]
protected TotpDeviceDto()
TotpDeviceDto(Guid, string, string, string, int?, int?, string, DateTime, DateTime)
Initializes a new instance of the TotpDeviceDto class.
Declaration
public TotpDeviceDto(Guid id = default, string name = null, string username = null, string issuer = null, int? digits = null, int? period = null, string algorithm = null, DateTime createdAt = default, DateTime updatedAt = default)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | id (required). |
string | name | name. |
string | username | username. |
string | issuer | issuer. |
int? | digits | digits. |
int? | period | period. |
string | algorithm | algorithm. |
DateTime | createdAt | createdAt (required). |
DateTime | updatedAt | updatedAt (required). |
Properties
View SourceAlgorithm
Gets or Sets Algorithm
Declaration
[DataMember(Name = "algorithm", EmitDefaultValue = true)]
public string Algorithm { get; set; }
Property Value
Type | Description |
---|---|
string |
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Digits
Gets or Sets Digits
Declaration
[DataMember(Name = "digits", EmitDefaultValue = true)]
public int? Digits { get; set; }
Property Value
Type | Description |
---|---|
int? |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
Guid |
Issuer
Gets or Sets Issuer
Declaration
[DataMember(Name = "issuer", EmitDefaultValue = true)]
public string Issuer { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Gets or Sets Name
Declaration
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Period
Gets or Sets Period
Declaration
[DataMember(Name = "period", EmitDefaultValue = true)]
public int? Period { get; set; }
Property Value
Type | Description |
---|---|
int? |
UpdatedAt
Gets or Sets UpdatedAt
Declaration
[DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime UpdatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Username
Gets or Sets Username
Declaration
[DataMember(Name = "username", EmitDefaultValue = true)]
public string Username { get; set; }
Property Value
Type | Description |
---|---|
string |
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 |