Target .Netstandard 2.0 (#8)
* Fix build on non-windows platform * Update to netstandard 2.0 Fix build on OSX * Fix netstandard UWP API usage * Update README.md * Fix build * Fix build * Fix build on *Nix * Remove Win stuff on nonwindows * fix compilation * Fixes * Fix
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
#pragma warning disable CS0067
|
||||
|
||||
namespace DesktopNotifications.Windows
|
||||
{
|
||||
public class WindowsApplicationContext : ApplicationContext
|
||||
{
|
||||
public static WindowsApplicationContext FromCurrentProcess(
|
||||
string? customName = null,
|
||||
string? appUserModelId = null)
|
||||
{
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
|
||||
public WindowsApplicationContext(string name) : base(name)
|
||||
{
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class WindowsNotificationManager : INotificationManager
|
||||
{
|
||||
public WindowsNotificationManager(WindowsApplicationContext? context = null)
|
||||
{
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
|
||||
public string? LaunchActionId { get; }
|
||||
|
||||
public event EventHandler<NotificationActivatedEventArgs>? NotificationActivated;
|
||||
|
||||
public event EventHandler<NotificationDismissedEventArgs>? NotificationDismissed;
|
||||
|
||||
public Task Initialize()
|
||||
{
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
|
||||
public Task ShowNotification(Notification notification, DateTimeOffset? expirationTime = null)
|
||||
{
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
|
||||
public Task ScheduleNotification(Notification notification, DateTimeOffset deliveryTime,
|
||||
DateTimeOffset? expirationTime = null)
|
||||
{
|
||||
throw new PlatformNotSupportedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user