更新密码数据123
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
|
||||
namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.Models
|
||||
{
|
||||
public enum LicenseStage
|
||||
{
|
||||
FirstPeriod,
|
||||
SecondPeriod,
|
||||
Permanent
|
||||
}
|
||||
|
||||
public enum LicenseCheckState
|
||||
{
|
||||
NotInitialized,
|
||||
Valid,
|
||||
Expired,
|
||||
Tampered
|
||||
}
|
||||
|
||||
public sealed record PasswordSecret(string Salt, string Hash);
|
||||
|
||||
public sealed record LicenseData(
|
||||
string InstallId,
|
||||
LicenseStage Stage,
|
||||
DateTime StageStartedUtc,
|
||||
DateTime LastTrustedUtc,
|
||||
int FirstPeriodMonths,
|
||||
int SecondPeriodMonths,
|
||||
PasswordSecret AdminPassword,
|
||||
PasswordSecret FirstUnlockPassword,
|
||||
PasswordSecret SecondUnlockPassword);
|
||||
|
||||
public sealed record LicenseCheckResult(
|
||||
LicenseCheckState State,
|
||||
LicenseStage Stage,
|
||||
DateTime? ExpiresUtc,
|
||||
string Message)
|
||||
{
|
||||
public bool CanUseSoftware => State == LicenseCheckState.Valid;
|
||||
public bool RequiresUnlock => State == LicenseCheckState.Expired;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user