mirror of
https://github.com/XFox111/SimpleOTP.git
synced 2026-04-23 08:08:40 +03:00
Created OTPCode (markdown)
+25
@@ -0,0 +1,25 @@
|
|||||||
|
Namespace: `SimpleOTP`
|
||||||
|
|
||||||
|
Assembly: `SimpleOTP.dll`
|
||||||
|
|
||||||
|
OTP code object model.
|
||||||
|
```csharp
|
||||||
|
public record OTPCode
|
||||||
|
```
|
||||||
|
|
||||||
|
## Constructors
|
||||||
|
| Constructor | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| [OTPCode()](https://github.com/XFox111/SimpleOTP/wiki/OTPCode.OTPCode) | Initializes a new instance of the `OTPCode` class. |
|
||||||
|
| [OTPCode(int)](https://github.com/XFox111/SimpleOTP/wiki/OTPCode.OTPCode#OTPCodeint) | Initializes a new instance of the `OTPCode` class. |
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
| Property | Type | Description |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `Code` | `Int32` | Gets or sets OTP code. |
|
||||||
|
| `Expiring` | [DateTime?](https://docs.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | Gets or sets date-time until the code is valid. |
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
| Method | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| [GetCode](https://github.com/XFox111/SimpleOTP/wiki/OTPCode.GetCode) | Gets valid 6 digit or more OTP code. |
|
||||||
Reference in New Issue
Block a user