Archived
1
0

Development 7

This commit is contained in:
Michael Gordeev
2018-07-22 15:00:47 +03:00
parent 57c90f4037
commit 0338d8a626
24 changed files with 727 additions and 359 deletions
+5 -5
View File
@@ -18,25 +18,25 @@ namespace FoxTube.Background
Video, Comment, Post, Internal
}
public class Notification
public sealed class Notification
{
public string Channel { get; set; }
public string Content { get; set; }
public DateTime TimeStamp { get; set; }
public DateTimeOffset TimeStamp { get; set; }
public NotificationType Type { get; set; }
public string Avatar { get; set; }
public string Thumbnail { get; set; }
public string Id { get; set; }
public Notification(string type, string id,
string channelName, string content, DateTime date,
string thumbnailUrl, string avatarUrl = "ms-appx:///Assets/Icons/Profile.png")
string channelName, string content, DateTimeOffset date,
string thumbnailUrl, string avatarUrl)
{
Channel = channelName;
Content = content;
TimeStamp = date;
Type = TypeConversion(type);
Avatar = avatarUrl;
Avatar = avatarUrl == null? "ms-appx:///Assets/Icons/Profile.png" : avatarUrl;
Thumbnail = thumbnailUrl;
}