Anyway, I am the only one who reads this, right?
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace FoxTube.Core.Models.Inbox
|
||||
{
|
||||
public class Changelog : InboxItem
|
||||
{
|
||||
public override string DefaultIcon => "\xE728";
|
||||
public override string Title => "What's new in version " + Id;
|
||||
public override string Type => "Changelog";
|
||||
|
||||
public Changelog(string version, string content, string description, DateTime timeStamp)
|
||||
{
|
||||
Id = version;
|
||||
Content = content;
|
||||
Description = description;
|
||||
TimeStamp = timeStamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace FoxTube.Core.Models.Inbox
|
||||
{
|
||||
public class DeveloperMessage : InboxItem
|
||||
{
|
||||
public override string DefaultIcon => "\xE119";
|
||||
public override string Title => _title;
|
||||
string _title;
|
||||
public override string Type => "Message from developers";
|
||||
|
||||
public DeveloperMessage(string id, string title, string content, DateTime timeStamp, string avatar)
|
||||
{
|
||||
Id = id;
|
||||
_title = title;
|
||||
Content = content;
|
||||
Description = content;
|
||||
TimeStamp = timeStamp;
|
||||
Avatar = avatar;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace FoxTube.Core.Models
|
||||
{
|
||||
public abstract class InboxItem
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public abstract string DefaultIcon { get; }
|
||||
public string Avatar { get; set; }
|
||||
public abstract string Title { get; }
|
||||
public string Description { get; set; }
|
||||
public string Content { get; set; }
|
||||
public DateTime TimeStamp { get; set; }
|
||||
public abstract string Type { get; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user