mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
fix: add json property names, class -> record
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
namespace West.TelegramBot.ContentStore.Model;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
public class AnimalImage
|
||||
namespace West.TelegramBot.ContentStore.Model;
|
||||
|
||||
public record AnimalImage
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public string Url { get; set; } = null!;
|
||||
[JsonPropertyName("id")]
|
||||
public required string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public required string Url { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user