Skip to content

CommentDto

Namespace: SlottyMedia.Backend.Dtos

The Comment Data Transfer Object

public class CommentDto

Inheritance ObjectCommentDto

Properties

CommentId

Gets or sets the Comment Id.

public Guid CommentId { get; set; }

Property Value

Guid

CreatorUserId

Gets or sets the ID of the user who created the comment.

public Nullable<Guid> CreatorUserId { get; set; }

Property Value

Nullable<Guid>

PostId

Gets or sets the ID of the post the comment is related to.

public Guid PostId { get; set; }

Property Value

Guid

Content

Gets or sets the content of the comment.

public string Content { get; set; }

Property Value

String

CreatedAt

Gets or sets the date and time when the comment was created.

public DateTime CreatedAt { get; set; }

Property Value

DateTime

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

Returns

CommentDto