30 lines
		
	
	
		
			715 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			715 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System.Text.Json.Serialization;
 | |
| 
 | |
| namespace Adaptation.FileHandlers.json.WorkItems;
 | |
| 
 | |
| internal class CommentVersionRef
 | |
| {
 | |
| 
 | |
|     [JsonConstructor]
 | |
|     public CommentVersionRef(
 | |
|         int commentId,
 | |
|         int version,
 | |
|         string url
 | |
|     )
 | |
|     {
 | |
|         CommentId = commentId;
 | |
|         Version = version;
 | |
|         URL = url;
 | |
|     }
 | |
| 
 | |
|     [JsonPropertyName("commentId")] public int CommentId { get; }
 | |
|     [JsonPropertyName("url")] public string URL { get; }
 | |
|     [JsonPropertyName("version")] public int Version { get; }
 | |
| 
 | |
| }
 | |
| 
 | |
| [JsonSourceGenerationOptions(WriteIndented = true)]
 | |
| [JsonSerializable(typeof(CommentVersionRef))]
 | |
| internal partial class CommentVersionRefSourceGenerationContext : JsonSerializerContext
 | |
| {
 | |
| } |