Init
This commit is contained in:
21
src/Band/Models/Posts/Photo.cs
Normal file
21
src/Band/Models/Posts/Photo.cs
Normal 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 {
|
||||
}
|
||||
Reference in New Issue
Block a user