40 lines
857 B
C#
40 lines
857 B
C#
namespace RelayShared.Services;
|
|
|
|
public class AuthSignin
|
|
{
|
|
public string UserName { get; set; }
|
|
public string Password { get; set; }
|
|
}
|
|
|
|
public class AuthRegister
|
|
{
|
|
public string Username { get; set; }
|
|
public string Password { get; set; }
|
|
public string Email { get; set; }
|
|
}
|
|
|
|
public class AuthUserVerify
|
|
{
|
|
public string Username { get; set; }
|
|
public string Token { get; set; }
|
|
}
|
|
|
|
public class AuthServerLicenseVerify
|
|
{
|
|
public string License { get; set; }
|
|
}
|
|
|
|
public class AuthServerLicenseGenerate
|
|
{
|
|
public string Server { get; set; }
|
|
public string Length {get; set;} //TODO: Convert to Enum
|
|
}
|
|
|
|
public class DBLicense
|
|
{
|
|
public string Token {get; set;}
|
|
public bool IsClient {get; set;}
|
|
public DateTime CreatedAt {get; set;}
|
|
public DateTime ExpiresAt {get; set;}
|
|
public bool IsExpired {get; set;}
|
|
} |