CommentDto
Namespace: SlottyMedia.Backend.Dtos
The Comment Data Transfer Object
public class CommentDto
Inheritance Object → CommentDto
Properties
CommentId
Gets or sets the Comment Id.
public Guid CommentId { get; set; }
Property Value
CreatorUserId
Gets or sets the ID of the user who created the comment.
public Nullable<Guid> CreatorUserId { get; set; }
Property Value
PostId
Gets or sets the ID of the post the comment is related to.
public Guid PostId { get; set; }
Property Value
Content
Gets or sets the content of the comment.
public string Content { get; set; }
Property Value
CreatedAt
Gets or sets the date and time when the comment was created.
public DateTime CreatedAt { get; set; }
Property Value
Constructors
CommentDto()
Initializes a new instance of the CommentDto class.
public CommentDto()
Methods
Mapper()
This method maps the Comment Dto to the Comment Dao.
public CommentDao Mapper()
Returns
CommentDao
Mapper(CommentDao)
Maps the Comment Dao to the Comment Dto.
public CommentDto Mapper(CommentDao comment)
Parameters
comment CommentDao