Files
Aoyo.Taiga/Aoyo.Taiga/WebHookTypes/BaseTaigaItem.cs
Dmitri Shimanski 2d36a60f5d Create project file
2025-07-29 23:37:04 +03:00

54 lines
1.5 KiB
C#

using System.Text.Json.Serialization;
namespace Aoyo.Taiga.WebHookTypes;
public abstract class BaseTaigaItem : ITaigaItem
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("ref")]
public int Ref { get; set; }
[JsonPropertyName("subject")]
public string Subject { get; set; }
[JsonPropertyName("description")]
public string Description { get; set; }
[JsonPropertyName("created_date")]
public DateTime CreatedDate { get; set; }
[JsonPropertyName("modified_date")]
public DateTime? ModifiedDate { get; set; }
[JsonPropertyName("owner")]
public TaigaUser Owner { get; set; }
[JsonPropertyName("assigned_to")]
public TaigaUser? AssignedTo { get; set; }
[JsonPropertyName("project")]
public TaigaProject Project { get; set; }
[JsonPropertyName("status")]
public TaigaStatus Status { get; set; }
[JsonPropertyName("tags")]
public List<string> Tags { get; set; } = new List<string>();
[JsonPropertyName("is_closed")]
public bool IsClosed { get; set; }
[JsonPropertyName("is_blocked")]
public bool IsBlocked { get; set; }
[JsonPropertyName("blocked_note")]
public string BlockedNote { get; set; }
[JsonPropertyName("version")]
public int Version { get; set; }
[JsonPropertyName("watchers")]
public List<int> Watchers { get; set; } = new List<int>();
}