From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- MediaBrowser.Model/Activity/ActivityLogEntry.cs | 68 ++++++++++++++++++++++ MediaBrowser.Model/Activity/IActivityManager.cs | 17 ++++++ MediaBrowser.Model/Activity/IActivityRepository.cs | 12 ++++ 3 files changed, 97 insertions(+) create mode 100644 MediaBrowser.Model/Activity/ActivityLogEntry.cs create mode 100644 MediaBrowser.Model/Activity/IActivityManager.cs create mode 100644 MediaBrowser.Model/Activity/IActivityRepository.cs (limited to 'MediaBrowser.Model/Activity') diff --git a/MediaBrowser.Model/Activity/ActivityLogEntry.cs b/MediaBrowser.Model/Activity/ActivityLogEntry.cs new file mode 100644 index 0000000000..1f4bff10d0 --- /dev/null +++ b/MediaBrowser.Model/Activity/ActivityLogEntry.cs @@ -0,0 +1,68 @@ +using MediaBrowser.Model.Logging; +using System; + +namespace MediaBrowser.Model.Activity +{ + public class ActivityLogEntry + { + /// + /// Gets or sets the identifier. + /// + /// The identifier. + public long Id { get; set; } + + /// + /// Gets or sets the name. + /// + /// The name. + public string Name { get; set; } + + /// + /// Gets or sets the overview. + /// + /// The overview. + public string Overview { get; set; } + + /// + /// Gets or sets the short overview. + /// + /// The short overview. + public string ShortOverview { get; set; } + + /// + /// Gets or sets the type. + /// + /// The type. + public string Type { get; set; } + + /// + /// Gets or sets the item identifier. + /// + /// The item identifier. + public string ItemId { get; set; } + + /// + /// Gets or sets the date. + /// + /// The date. + public DateTime Date { get; set; } + + /// + /// Gets or sets the user identifier. + /// + /// The user identifier. + public Guid UserId { get; set; } + + /// + /// Gets or sets the user primary image tag. + /// + /// The user primary image tag. + public string UserPrimaryImageTag { get; set; } + + /// + /// Gets or sets the log severity. + /// + /// The log severity. + public LogSeverity Severity { get; set; } + } +} diff --git a/MediaBrowser.Model/Activity/IActivityManager.cs b/MediaBrowser.Model/Activity/IActivityManager.cs new file mode 100644 index 0000000000..7fff26987a --- /dev/null +++ b/MediaBrowser.Model/Activity/IActivityManager.cs @@ -0,0 +1,17 @@ +using System; +using MediaBrowser.Model.Events; +using MediaBrowser.Model.Querying; + +namespace MediaBrowser.Model.Activity +{ + public interface IActivityManager + { + event EventHandler> EntryCreated; + + void Create(ActivityLogEntry entry); + + QueryResult GetActivityLogEntries(DateTime? minDate, int? startIndex, int? limit); + + QueryResult GetActivityLogEntries(DateTime? minDate, bool? hasUserId, int? x, int? y); + } +} diff --git a/MediaBrowser.Model/Activity/IActivityRepository.cs b/MediaBrowser.Model/Activity/IActivityRepository.cs new file mode 100644 index 0000000000..5a2c52400e --- /dev/null +++ b/MediaBrowser.Model/Activity/IActivityRepository.cs @@ -0,0 +1,12 @@ +using System; +using MediaBrowser.Model.Querying; + +namespace MediaBrowser.Model.Activity +{ + public interface IActivityRepository + { + void Create(ActivityLogEntry entry); + + QueryResult GetActivityLogEntries(DateTime? minDate, bool? z, int? startIndex, int? limit); + } +} -- cgit v1.2.3