10 lines
385 B
C#
10 lines
385 B
C#
|
|
namespace Surveillance.Client.Domain;
|
||
|
|
|
||
|
|
public sealed class DeviceCredentials(string userName, string password)
|
||
|
|
{
|
||
|
|
public string UserName { get; } = userName ?? throw new ArgumentNullException(nameof(userName));
|
||
|
|
|
||
|
|
public string Password { get; } = password ?? throw new ArgumentNullException(nameof(password));
|
||
|
|
|
||
|
|
public override string ToString() => "[redacted credentials]";
|
||
|
|
}
|