| 123456789101112131415161718192021222324252627282930313233343536 |
- namespace Application.Features.Api.Feed.GetPost;
- public sealed class Response
- {
- public int PostID { get; init; }
- public string? AuthorSID { get; init; }
- public string? AuthorName { get; init; }
- public string? AuthorThumb { get; init; }
- public bool IsCreator { get; init; }
- public string? ChannelSID { get; init; }
- public required string Content { get; init; }
- public required IReadOnlyList<ImageItem> Images { get; init; }
- public required IReadOnlyList<string> Medias { get; init; }
- public int Likes { get; init; }
- public int Comments { get; init; }
- public int Bookmarks { get; init; }
- public int Views { get; init; }
- public required IReadOnlyList<TagRef> Tags { get; init; }
- public DateTime CreatedAt { get; init; }
- public bool HasLike { get; init; }
- public bool HasBookmark { get; init; }
- public bool IsOwner { get; init; }
- public sealed class ImageItem
- {
- public required string Url { get; init; }
- public short? Width { get; init; }
- public short? Height { get; init; }
- }
- public sealed class TagRef
- {
- public required string Name { get; init; }
- public required string Slug { get; init; }
- }
- }
|