add resource check

incorrect pass / hw handling in a loader
This commit is contained in:
Alex Bezdieniezhnykh
2025-06-15 15:01:55 +03:00
parent c0f8dd792d
commit def7aad833
14 changed files with 193 additions and 16 deletions
+9 -3
View File
@@ -1,9 +1,15 @@
using MessagePack;
namespace Azaion.LoaderUI;
public class ApiCredentials(string email, string pw)
[MessagePackObject]
public class ApiCredentials
{
public string Email { get; set; } = email;
public string Password { get; set; } = pw;
[Key(nameof(Email))]
public string Email { get; set; } = null!;
[Key(nameof(Password))]
public string Password { get; set; } = null!;
public bool IsValid() =>
!string.IsNullOrWhiteSpace(Email) && !string.IsNullOrWhiteSpace(Password);