mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:36:30 +00:00
def7aad833
incorrect pass / hw handling in a loader
16 lines
363 B
C#
16 lines
363 B
C#
using MessagePack;
|
|
|
|
namespace Azaion.LoaderUI;
|
|
|
|
[MessagePackObject]
|
|
public class ApiCredentials
|
|
{
|
|
[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);
|
|
} |