Archived
1
0

Inbox development 2

This commit is contained in:
Michael Gordeev
2018-07-30 01:08:25 +03:00
parent 2ab98fc0d8
commit 1039acb96a
6 changed files with 121 additions and 79 deletions
+5 -4
View File
@@ -8,7 +8,7 @@ namespace FoxTube.Classes
public class InboxItem
{
public InboxItemType Type { get; set; } = InboxItemType.Default;
DateTime TimeStamp { get; set; }
public DateTime TimeStamp { get; set; }
public string PatchVersion { get; set; }
public string Subject { get; set; }
@@ -19,9 +19,9 @@ namespace FoxTube.Classes
get
{
if (Type == InboxItemType.PatchNote)
return @"";
return "\xE728";
else
return @"";
return "\xE119";
}
}
public string Subtitle
@@ -52,13 +52,14 @@ namespace FoxTube.Classes
Type = InboxItemType.PatchNote;
PatchVersion = version;
Content = content;
TimeStamp = XmlConvert.ToDateTime(timeStamp, XmlDateTimeSerializationMode.Unspecified);
TimeStamp = DateTime.Parse(timeStamp);
}
public InboxItem(string title, string content, DateTime timeStamp)
{
Type = InboxItemType.Default;
Content = content;
Subject = title;
TimeStamp = timeStamp;
}
}