Browse Source

CivitCreator to record, add computed ProfileUrl

pull/324/head
Ionite 12 months ago
parent
commit
a54d17905a
No known key found for this signature in database
  1. 11
      StabilityMatrix.Core/Models/Api/CivitCreator.cs

11
StabilityMatrix.Core/Models/Api/CivitCreator.cs

@ -2,11 +2,14 @@
namespace StabilityMatrix.Core.Models.Api;
public class CivitCreator
public record CivitCreator
{
[JsonPropertyName("username")]
public string Username { get; set; }
public string? Username { get; init; }
[JsonPropertyName("image")]
public string? Image { get; set; }
public string? Image { get; init; }
[JsonIgnore]
public string? ProfileUrl => Username is null ? null : $"https://civitai.com/user/{Username}";
}

Loading…
Cancel
Save