From 29865e38d25c94524ee9e7969ca9500fc992bd3d Mon Sep 17 00:00:00 2001 From: Ionite Date: Thu, 23 Nov 2023 01:43:57 -0500 Subject: [PATCH] Create CivitUserToggleFavoriteModelRequest.cs --- .../CivitUserToggleFavoriteModelRequest.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 StabilityMatrix.Core/Models/Api/CivitTRPC/CivitUserToggleFavoriteModelRequest.cs diff --git a/StabilityMatrix.Core/Models/Api/CivitTRPC/CivitUserToggleFavoriteModelRequest.cs b/StabilityMatrix.Core/Models/Api/CivitTRPC/CivitUserToggleFavoriteModelRequest.cs new file mode 100644 index 00000000..8cc912fd --- /dev/null +++ b/StabilityMatrix.Core/Models/Api/CivitTRPC/CivitUserToggleFavoriteModelRequest.cs @@ -0,0 +1,19 @@ +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace StabilityMatrix.Core.Models.Api.CivitTRPC; + +public record CivitUserToggleFavoriteModelRequest : IFormattable +{ + [JsonPropertyName("modelId")] + public required int ModelId { get; set; } + + [JsonPropertyName("authed")] + public bool Authed { get; set; } = true; + + /// + public string ToString(string? format, IFormatProvider? formatProvider) + { + return JsonSerializer.Serialize(new { json = this }); + } +}