Archived
1
0

Notification system development 2

This commit is contained in:
Michael Gordeev
2018-10-24 22:00:47 +03:00
parent 1a93ea4801
commit df6d9c4aab
5 changed files with 18 additions and 21 deletions
+4 -6
View File
@@ -9,8 +9,7 @@ namespace FoxTube.Classes
{
public InboxItemType Type { get; set; } = InboxItemType.Default;
public DateTime TimeStamp { get; set; }
public string PatchVersion { get; set; }
public string Subject { get; set; }
public string Content { get; set; }
public string Id { get; set; }
@@ -41,20 +40,19 @@ namespace FoxTube.Classes
get
{
if (Type == InboxItemType.PatchNote)
return $"What's new in v{PatchVersion}";
return $"What's new in v{Id}";
else
return Subject;
}
}
public InboxItem(string version, string content, string timeStamp, string id)
public InboxItem(string version, string content, string timeStamp)
{
Type = InboxItemType.PatchNote;
PatchVersion = version;
Content = content;
TimeStamp = DateTime.Parse(timeStamp);
Id = id;
Id = version;
}
public InboxItem(string title, string content, DateTime timeStamp, string id)