Events on desktop
This commit is contained in:
@@ -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}";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user