96 lines
2.8 KiB
C#
96 lines
2.8 KiB
C#
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Blueberry.Redmine.Dto
|
|
{
|
|
public class CustomFieldList
|
|
{
|
|
public class CustomField
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public int Id { get; set; }
|
|
|
|
[JsonPropertyName("name")]
|
|
public string Name { get; set; }
|
|
|
|
[JsonPropertyName("customized_type")]
|
|
public string CustomizedType { get; set; }
|
|
|
|
[JsonPropertyName("field_format")]
|
|
public string FieldFormat { get; set; }
|
|
|
|
[JsonPropertyName("regexp")]
|
|
public string Regexp { get; set; }
|
|
|
|
[JsonPropertyName("min_length")]
|
|
public int? MinLength { get; set; }
|
|
|
|
[JsonPropertyName("max_length")]
|
|
public int? MaxLength { get; set; }
|
|
|
|
[JsonPropertyName("is_required")]
|
|
public bool IsRequired { get; set; }
|
|
|
|
[JsonPropertyName("is_filter")]
|
|
public bool IsFilter { get; set; }
|
|
|
|
[JsonPropertyName("searchable")]
|
|
public bool Searchable { get; set; }
|
|
|
|
[JsonPropertyName("multiple")]
|
|
public bool Multiple { get; set; }
|
|
|
|
[JsonPropertyName("default_value")]
|
|
public string DefaultValue { get; set; }
|
|
|
|
[JsonPropertyName("visible")]
|
|
public bool Visible { get; set; }
|
|
|
|
[JsonPropertyName("possible_values")]
|
|
public List<PossibleValue> PossibleValues { get; set; }
|
|
|
|
[JsonPropertyName("trackers")]
|
|
public List<Tracker> Trackers { get; set; }
|
|
|
|
[JsonPropertyName("roles")]
|
|
public List<Role> Roles { get; set; }
|
|
}
|
|
|
|
public class PossibleValue
|
|
{
|
|
[JsonPropertyName("value")]
|
|
public string Value { get; set; }
|
|
|
|
[JsonPropertyName("label")]
|
|
public string Label { get; set; }
|
|
}
|
|
|
|
public class Role
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public int Id { get; set; }
|
|
|
|
[JsonPropertyName("name")]
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
public class Root
|
|
{
|
|
[JsonPropertyName("custom_fields")]
|
|
public List<CustomField> CustomFields { get; set; }
|
|
}
|
|
|
|
public class Tracker
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public int Id { get; set; }
|
|
|
|
[JsonPropertyName("name")]
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
|