This commit is contained in:
2025-09-05 19:56:32 -07:00
commit 326d0808b8
82 changed files with 3482 additions and 0 deletions

View File

@ -0,0 +1,21 @@
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 {
}