Notification system development 2
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user