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