protected static void TitleUpdate(Episod currenEpisods)
 {
     ITileWideImage tileContent = TileContentFactory.CreateTileWideImage();
     tileContent.Image.Src = currenEpisods.posterPath;
     tileContent.RequireSquareContent = false;
     TileUpdateManager.CreateTileUpdaterForApplication().Update(tileContent.CreateNotification());
 }
Exemplo n.º 2
0
 public static bool Equals(Episod a, Episod b)
 {
     if (b == null)
         return false;
     if (a.episodTitle == b.episodTitle)
         return true;
     else
         return false;
 }
 public static void NotificationSend(Episod currenEpisods)
 {
     IToastNotificationContent toastContent = null;
     IToastImageAndText03 templateContent = ToastContentFactory.CreateToastImageAndText03();
     templateContent.TextHeadingWrap.Text = currenEpisods.showTitle + " - новая серия уже доступна.";
     templateContent.TextBody.Text = currenEpisods.episodTitle;
     templateContent.Image.Src = currenEpisods.imagePath;    
     toastContent = templateContent;
     ToastNotification toast = toastContent.CreateNotification();
     ToastNotificationManager.CreateToastNotifier().Show(toast);
 }