femto-backend/Femto.Modules.Blog/Domain/Posts/PostMedia.cs

23 lines
No EOL
635 B
C#

namespace Femto.Modules.Blog.Domain.Posts;
internal class PostMedia
{
public Guid Id { get; private set; }
public Uri Url { get; private set; }
public string? Type { get; private set; }
public int Ordering { get; private set; }
public int? Width { get; private set; }
public int? Height { get; private set; }
private PostMedia() {}
public PostMedia(Guid id, Uri url, string type, int ordering, int? width, int? height)
{
this.Id = id;
this.Url = url;
this.Type = type;
this.Ordering = ordering;
this.Width = width;
this.Height = height;
}
}