PostDto
Namespace: SlottyMedia.Backend.Dtos
The Post Data Transfer Object
public class PostDto
Properties
Forum
Gets or sets the forum associated with the post.
public ForumDto Forum { get; set; }
Property Value
PostId
Gets or sets the post ID.
public Guid PostId { get; set; }
Property Value
UserId
Gets or sets the user ID of the user who created the post.
public Guid UserId { get; set; }
Property Value
Likes
Gets or sets the list of user IDs who liked the post.
public List<Guid> Likes { get; set; }
Property Value
CreatedAt
Gets or sets the creation date of the post.
public DateTime CreatedAt { get; set; }
Property Value
Headline
Gets or sets the headline of the post.
public string Headline { get; set; }
Property Value
Content
Gets or sets the content of the post.
public string Content { get; set; }
Property Value
Constructors
PostDto()
Initializes a new instance of the PostDto class.
public PostDto()
Methods
Mapper()
The Mapper for the Post Dto to the Post Dao.
public PostsDao Mapper()
Returns
PostsDao
Mapper(PostsDao)
Maps the Post Dao to the Post Dto.
public PostDto Mapper(PostsDao post)
Parameters
post PostsDao
Returns
ToString()
The ToString method returns a string representation of the object.
public string ToString()