1
0
mirror of https://github.com/XFox111/SimpleOTP.git synced 2026-04-23 08:08:40 +03:00

Created OTPCode (markdown)

2021-05-31 16:42:16 +03:00
parent 344e53c59d
commit 207202d1bb
+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. |