teamlead-dashboard/src/TUI/Domain/Project.cs

16 lines
451 B
C#
Raw Normal View History

2024-04-01 13:37:40 +00:00
namespace TUI.Domain;
2024-06-14 11:02:21 +00:00
public record Project(int Id, string Name, IEnumerable<string> Tags, Hub Hub)
2024-04-01 13:37:40 +00:00
{
private IEnumerable<Dependency> Dependencies => new List<Dependency>();
2024-12-10 14:23:46 +00:00
2024-04-01 13:37:40 +00:00
public bool IsPublicNetwork => Tags.Contains("public");
2024-12-10 14:23:46 +00:00
2024-04-01 13:37:40 +00:00
public bool HasAuth => Tags.Contains("auth");
2024-12-10 14:23:46 +00:00
2024-04-01 13:37:40 +00:00
public bool SeoDependent => Tags.Contains("seo");
2024-12-10 14:23:46 +00:00
2024-06-14 11:02:21 +00:00
public bool Legacy => Tags.Contains("legacy");
2024-12-10 14:23:46 +00:00
public bool Freeze => Tags.Contains("freeze");
2024-04-01 13:37:40 +00:00
}