Browse Source

Create CivitUserToggleFavoriteModelRequest.cs

pull/324/head
Ionite 1 year ago
parent
commit
29865e38d2
No known key found for this signature in database
  1. 19
      StabilityMatrix.Core/Models/Api/CivitTRPC/CivitUserToggleFavoriteModelRequest.cs

19
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;
/// <inheritdoc />
public string ToString(string? format, IFormatProvider? formatProvider)
{
return JsonSerializer.Serialize(new { json = this });
}
}
Loading…
Cancel
Save