Events on desktop
This commit is contained in:
1 parent
f90e73d544
commit
cc0cc3d7f7
17 files changed
+813
-2
No files matched your search
@@ -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