21 lines
895 B
C#
21 lines
895 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Band.Models.Posts;
|
|
|
|
public record Photo(
|
|
[property: JsonPropertyName("author")] Author Author,
|
|
[property: JsonPropertyName("comment_count")] int CommentCount,
|
|
[property: JsonPropertyName("created_at")] object CreatedAt,
|
|
[property: JsonPropertyName("emotion_count")] int EmotionCount,
|
|
[property: JsonPropertyName("height")] int Height,
|
|
[property: JsonPropertyName("is_video_thumbnail")] bool IsVideoThumbnail,
|
|
[property: JsonPropertyName("photo_album_key")] object PhotoAlbumKey,
|
|
[property: JsonPropertyName("photo_key")] string PhotoKey,
|
|
[property: JsonPropertyName("url")] string Url,
|
|
[property: JsonPropertyName("width")] int Width
|
|
);
|
|
|
|
[JsonSourceGenerationOptions(WriteIndented = true)]
|
|
[JsonSerializable(typeof(Photo))]
|
|
public partial class PostsPhotoSourceGenerationContext : JsonSerializerContext {
|
|
} |