aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-01-06 16:00:30 +0100
committerBond_009 <bond.009@outlook.com>2019-01-23 16:39:12 +0100
commitf6f0a8a481332f55a4af68ee776580cb506dd48c (patch)
tree078c3c413448f0babea9ab87de6e0d1f9bb33798 /MediaBrowser.Model
parentbd550ef99649921af46c33c44210b2bd48d39ea0 (diff)
Use EF Core for Activity database
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/Activity/IActivityManager.cs9
-rw-r--r--MediaBrowser.Model/Activity/IActivityRepository.cs8
2 files changed, 8 insertions, 9 deletions
diff --git a/MediaBrowser.Model/Activity/IActivityManager.cs b/MediaBrowser.Model/Activity/IActivityManager.cs
index 897d93d79..3cfd94695 100644
--- a/MediaBrowser.Model/Activity/IActivityManager.cs
+++ b/MediaBrowser.Model/Activity/IActivityManager.cs
@@ -1,6 +1,7 @@
using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
using MediaBrowser.Model.Events;
-using MediaBrowser.Model.Querying;
namespace MediaBrowser.Model.Activity
{
@@ -8,10 +9,8 @@ namespace MediaBrowser.Model.Activity
{
event EventHandler<GenericEventArgs<ActivityLogEntry>> EntryCreated;
- void Create(ActivityLogEntry entry);
+ Task Create(ActivityLogEntry entry);
- QueryResult<ActivityLogEntry> GetActivityLogEntries(DateTime? minDate, int? startIndex, int? limit);
-
- QueryResult<ActivityLogEntry> GetActivityLogEntries(DateTime? minDate, bool? hasUserId, int? x, int? y);
+ IEnumerable<ActivityLogEntry> GetActivityLogEntries(DateTime? minDate, bool? hasUserId, int? x, int? y);
}
}
diff --git a/MediaBrowser.Model/Activity/IActivityRepository.cs b/MediaBrowser.Model/Activity/IActivityRepository.cs
index f0e3b902c..3ed6175ce 100644
--- a/MediaBrowser.Model/Activity/IActivityRepository.cs
+++ b/MediaBrowser.Model/Activity/IActivityRepository.cs
@@ -1,12 +1,12 @@
-using System;
-using MediaBrowser.Model.Querying;
+using System.Linq;
+using System.Threading.Tasks;
namespace MediaBrowser.Model.Activity
{
public interface IActivityRepository
{
- void Create(ActivityLogEntry entry);
+ Task CreateAsync(ActivityLogEntry entry);
- QueryResult<ActivityLogEntry> GetActivityLogEntries(DateTime? minDate, bool? z, int? startIndex, int? limit);
+ IQueryable<ActivityLogEntry> GetActivityLogEntries();
}
}