mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-22 01:13:48 +00:00
Improved JSON naming
This commit is contained in:
1 file changed
+3
-5
@@ -1,5 +1,3 @@
|
|||||||
using System.Text.Json.Serialization;
|
|
||||||
|
|
||||||
namespace AIStudio.Tools.Rust;
|
namespace AIStudio.Tools.Rust;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -9,8 +7,8 @@ namespace AIStudio.Tools.Rust;
|
|||||||
/// <param name="NewVersion">The new version, when available.</param>
|
/// <param name="NewVersion">The new version, when available.</param>
|
||||||
/// <param name="Changelog">The changelog of the new version, when available.</param>
|
/// <param name="Changelog">The changelog of the new version, when available.</param>
|
||||||
public readonly record struct UpdateResponse(
|
public readonly record struct UpdateResponse(
|
||||||
[property:JsonPropertyName("update_is_available")] bool UpdateIsAvailable,
|
bool UpdateIsAvailable,
|
||||||
[property:JsonPropertyName("error")] bool Error,
|
bool Error,
|
||||||
[property:JsonPropertyName("new_version")] string NewVersion,
|
string NewVersion,
|
||||||
string Changelog
|
string Changelog
|
||||||
);
|
);
|
||||||
Reference in new issue
Block a user