using Windows.Data.Xml.Dom; using Windows.UI.Notifications; namespace FoxTube.Background { public static class Notification { public static ToastNotification GetChangelogToast(string version) { XmlDocument template = new XmlDocument(); template.LoadXml($@" Changelog See what's new in version {version} "); return new ToastNotification(template); } public static ToastNotification GetVideoToast(string id, string channelId, string title, string channel, string thumbnail, string avatar) { XmlDocument template = new XmlDocument(); template.LoadXml($@" {title} {channel} uploaded a new video "); return new ToastNotification(template); } public static ToastNotification GetInternalToast(string id, string header, string content, string thumbnail, string avatar) { XmlDocument template = new XmlDocument(); template.LoadXml($@" {header} {content} "); return new ToastNotification(template); } } }