Events on desktop

This commit is contained in:
Dimitar Byalkov
2023-06-09 07:18:11 +02:00
parent f90e73d544
commit cc0cc3d7f7
17 changed files with 813 additions and 2 deletions

View File

@@ -7,6 +7,10 @@ namespace Models
{
public class Event : GenericMessage
{
public Event()
{
}
public Event(int id, User author, string description, string title, DateTime publishDate, DateTime startDate, DateTime endDate) : base(id, author, description, title, publishDate)
{
StartDate = startDate;
@@ -22,5 +26,9 @@ namespace Models
{
get;set;
}
public override string ToString()
{
return $"({StartDate.ToString("g")} - {EndDate.ToString("g")}; {Author.Name}) {Title}";
}
}
}