42 lines
903 B
C#
42 lines
903 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Adaptation.FileHandlers.json.WorkItems;
|
|
|
|
public class Value
|
|
{
|
|
[JsonConstructor]
|
|
public Value(
|
|
int id,
|
|
int rev,
|
|
Fields fields,
|
|
Relation[] relations,
|
|
CommentVersionRef commentVersionRef,
|
|
string url
|
|
)
|
|
{
|
|
Id = id;
|
|
Rev = rev;
|
|
Fields = fields;
|
|
Relations = relations;
|
|
CommentVersionRef = commentVersionRef;
|
|
Url = url;
|
|
}
|
|
|
|
[JsonPropertyName("id")]
|
|
public int Id { get; }
|
|
|
|
[JsonPropertyName("rev")]
|
|
public int Rev { get; }
|
|
|
|
[JsonPropertyName("fields")]
|
|
public Fields Fields { get; }
|
|
|
|
[JsonPropertyName("relations")]
|
|
public Relation[] Relations { get; }
|
|
|
|
[JsonPropertyName("commentVersionRef")]
|
|
public CommentVersionRef CommentVersionRef { get; }
|
|
|
|
[JsonPropertyName("url")]
|
|
public string Url { get; }
|
|
} |