Inbox development 2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user