From 207202d1bb5afbaacd945d6a980e632832d86412 Mon Sep 17 00:00:00 2001 From: Eugene Fox Date: Mon, 31 May 2021 16:42:16 +0300 Subject: [PATCH] Created OTPCode (markdown) --- OTPCode.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 OTPCode.md diff --git a/OTPCode.md b/OTPCode.md new file mode 100644 index 0000000..b73faf8 --- /dev/null +++ b/OTPCode.md @@ -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. | \ No newline at end of file