-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5c9666
commit 3dcc7ea
Showing
13 changed files
with
383 additions
and
452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace Lanceur.Core.Models | ||
{ | ||
/// <summary> | ||
/// Represents the response when checks whether the names specified is alias names | ||
/// </summary> | ||
public record ExistingNameResponse | ||
{ | ||
#region Constructors | ||
|
||
public ExistingNameResponse(string[] existingNames) | ||
{ | ||
ExistingNames = existingNames is null | ||
? Array.Empty<string>() | ||
: existingNames; | ||
} | ||
|
||
#endregion Constructors | ||
|
||
#region Properties | ||
|
||
/// <summary> | ||
/// List of existing names. Empty if no names exists | ||
/// </summary> | ||
public string[] ExistingNames { get; } | ||
|
||
/// <summary> | ||
/// <c>True</c> if at least one of the names to check already exist; otherwise <c>False</c> | ||
/// </summary> | ||
public bool Exists => ExistingNames?.Any() ?? false; | ||
|
||
#endregion Properties | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.