ForumDto
Namespace: SlottyMedia.Backend.Dtos
The Forum Data Transfer Object
public class ForumDto
Properties
ForumId
The Forum Id.
public Guid ForumId { get; set; }
Property Value
Topic
The Topic of the Forum.v
public string Topic { get; set; }
Property Value
CreatedAt
The Date and Time the Forum was created.
public DateTime CreatedAt { get; set; }
Property Value
PostCount
Amount of posts the forum has
public int PostCount { get; set; }
Property Value
Constructors
ForumDto()
The default constructor.
public ForumDto()
Methods
Mapper()
This method maps the ForumDto to a ForumDao.
public ForumDao Mapper()
Returns
ForumDao
Mapper(ForumDao)
THis method maps the ForumDao to a ForumDto.
public ForumDto Mapper(ForumDao forumDao)
Parameters
forumDao ForumDao
Returns
Mapper(TopForumDao)
THis method maps the ForumDao to a ForumDto.
public ForumDto Mapper(TopForumDao forumDao)
Parameters
forumDao TopForumDao
Returns
ToString()
The ToString method returns a string representation of the object.
public string ToString()