mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:46:30 +00:00
48c9ccbfda
refactor, renames
22 lines
463 B
C#
22 lines
463 B
C#
using System.Windows.Media;
|
|
using Azaion.Common.Extensions;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Azaion.Common.DTO;
|
|
|
|
public class DetectionClass
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public string Name { get; set; } = null!;
|
|
public string ShortName { get; set; } = null!;
|
|
|
|
[JsonIgnore]
|
|
public Color Color => Id.ToColor();
|
|
|
|
[JsonIgnore]
|
|
public int ClassNumber => Id + 1;
|
|
|
|
[JsonIgnore]
|
|
public SolidColorBrush ColorBrush => new(Color);
|
|
} |