Skip to content

PostDto

Namespace: SlottyMedia.Backend.Dtos

The Post Data Transfer Object

public class PostDto

Inheritance ObjectPostDto

Properties

Forum

Gets or sets the forum associated with the post.

public ForumDto Forum { get; set; }

Property Value

ForumDto

PostId

Gets or sets the post ID.

public Guid PostId { get; set; }

Property Value

Guid

UserId

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

public Guid UserId { get; set; }

Property Value

Guid

Likes

Gets or sets the list of user IDs who liked the post.

public List<Guid> Likes { get; set; }

Property Value

List<Guid>

CreatedAt

Gets or sets the creation date of the post.

public DateTime CreatedAt { get; set; }

Property Value

DateTime

Headline

Gets or sets the headline of the post.

public string Headline { get; set; }

Property Value

String

Content

Gets or sets the content of the post.

public string Content { get; set; }

Property Value

String

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

PostDto

ToString()

The ToString method returns a string representation of the object.

public string ToString()

Returns

String