From c40d3f349463c11c69fc2dcf929dc9f768f8fc86 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 25 Apr 2014 22:55:07 -0400 Subject: add more notifications --- MediaBrowser.Controller/IServerApplicationHost.cs | 9 +++++++++ MediaBrowser.Controller/Library/PlaybackProgressEventArgs.cs | 2 ++ 2 files changed, 11 insertions(+) (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/IServerApplicationHost.cs b/MediaBrowser.Controller/IServerApplicationHost.cs index 4b2ca497b..21f5fa87a 100644 --- a/MediaBrowser.Controller/IServerApplicationHost.cs +++ b/MediaBrowser.Controller/IServerApplicationHost.cs @@ -1,5 +1,6 @@ using MediaBrowser.Common; using MediaBrowser.Model.System; +using System; namespace MediaBrowser.Controller { @@ -8,6 +9,8 @@ namespace MediaBrowser.Controller /// public interface IServerApplicationHost : IApplicationHost { + event EventHandler HasUpdateAvailableChanged; + /// /// Gets the system info. /// @@ -31,5 +34,11 @@ namespace MediaBrowser.Controller /// /// The HTTP server port. int HttpServerPort { get; } + + /// + /// Gets a value indicating whether this instance has update available. + /// + /// true if this instance has update available; otherwise, false. + bool HasUpdateAvailable { get; } } } diff --git a/MediaBrowser.Controller/Library/PlaybackProgressEventArgs.cs b/MediaBrowser.Controller/Library/PlaybackProgressEventArgs.cs index 61984c795..8387881cf 100644 --- a/MediaBrowser.Controller/Library/PlaybackProgressEventArgs.cs +++ b/MediaBrowser.Controller/Library/PlaybackProgressEventArgs.cs @@ -1,4 +1,5 @@ using MediaBrowser.Controller.Entities; +using MediaBrowser.Model.Entities; using System; using System.Collections.Generic; @@ -12,6 +13,7 @@ namespace MediaBrowser.Controller.Library public List Users { get; set; } public long? PlaybackPositionTicks { get; set; } public BaseItem Item { get; set; } + public BaseItemInfo MediaInfo { get; set; } public string MediaSourceId { get; set; } public PlaybackProgressEventArgs() -- cgit v1.2.3