34 lines
1001 B
C#
34 lines
1001 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Adaptation.FileHandlers.json.WorkItems;
|
|
|
|
public class CustomRequester
|
|
{
|
|
[JsonConstructor]
|
|
public CustomRequester(
|
|
string descriptor,
|
|
string displayName,
|
|
string id,
|
|
string imageUrl,
|
|
Links links,
|
|
string uniqueName,
|
|
string url
|
|
)
|
|
{
|
|
Descriptor = descriptor;
|
|
DisplayName = displayName;
|
|
Id = id;
|
|
ImageUrl = imageUrl;
|
|
Links = links;
|
|
UniqueName = uniqueName;
|
|
Url = url;
|
|
}
|
|
|
|
[JsonPropertyName("descriptor")] public string Descriptor { get; }
|
|
[JsonPropertyName("displayName")] public string DisplayName { get; }
|
|
[JsonPropertyName("id")] public string Id { get; }
|
|
[JsonPropertyName("imageUrl")] public string ImageUrl { get; }
|
|
[JsonPropertyName("_links")] public Links Links { get; }
|
|
[JsonPropertyName("uniqueName")] public string UniqueName { get; }
|
|
[JsonPropertyName("url")] public string Url { get; }
|
|
} |