mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 08:40:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			635 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			635 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.Text.Json.Serialization;
 | 
						|
 | 
						|
namespace AIStudio.Tools;
 | 
						|
 | 
						|
/// <summary>
 | 
						|
/// The response of the update check.
 | 
						|
/// </summary>
 | 
						|
/// <param name="UpdateIsAvailable">True if an update is available.</param>
 | 
						|
/// <param name="NewVersion">The new version, when available.</param>
 | 
						|
/// <param name="Changelog">The changelog of the new version, when available.</param>
 | 
						|
public readonly record struct UpdateResponse(
 | 
						|
    [property:JsonPropertyName("update_is_available")] bool UpdateIsAvailable, 
 | 
						|
    [property:JsonPropertyName("error")] bool Error, 
 | 
						|
    [property:JsonPropertyName("new_version")] string NewVersion, 
 | 
						|
    string Changelog
 | 
						|
); |