Live store update notifications.
This commit is contained in:
@@ -36,8 +36,14 @@ public interface INotificationBuilder
|
||||
/// </summary>
|
||||
void CreateWebView2RuntimeMissingNotification();
|
||||
|
||||
/// <summary>
|
||||
/// Shows a notification when a Microsoft Store update is available.
|
||||
/// </summary>
|
||||
void CreateStoreUpdateNotification();
|
||||
|
||||
/// <summary>
|
||||
/// Creates a calendar reminder toast for the specified calendar item.
|
||||
/// </summary>
|
||||
Task CreateCalendarReminderNotificationAsync(CalendarItem calendarItem, long reminderDurationInSeconds);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using Wino.Core.Domain.Enums;
|
||||
using Wino.Core.Domain.Models.Calendar;
|
||||
@@ -57,6 +57,11 @@ public interface IPreferencesService : INotifyPropertyChanged
|
||||
/// </summary>
|
||||
WinoApplicationMode DefaultApplicationMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting: Whether Microsoft Store update notifications should be shown.
|
||||
/// </summary>
|
||||
bool IsStoreUpdateNotificationsEnabled { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Mail
|
||||
@@ -241,3 +246,4 @@ public interface IPreferencesService : INotifyPropertyChanged
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Wino.Core.Domain.Interfaces;
|
||||
|
||||
public interface IStoreUpdateService
|
||||
{
|
||||
bool HasAvailableUpdate { get; }
|
||||
|
||||
Task<bool> RefreshAvailabilityAsync(bool showNotification = false);
|
||||
|
||||
Task<bool> StartUpdateAsync();
|
||||
}
|
||||
Reference in New Issue
Block a user