Feat/usage stats collection (#317)
* feat: implement anonymous usage data collection Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
This commit is contained in:
parent
b25335acbd
commit
1c9b2572ae
23 changed files with 613 additions and 17 deletions
10
API/Interfaces/IFileRepository.cs
Normal file
10
API/Interfaces/IFileRepository.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace API.Interfaces
|
||||
{
|
||||
public interface IFileRepository
|
||||
{
|
||||
Task<IEnumerable<string>> GetFileExtensions();
|
||||
}
|
||||
}
|
||||
|
|
@ -11,5 +11,7 @@
|
|||
void RefreshMetadata(int libraryId, bool forceUpdate = true);
|
||||
void CleanupTemp();
|
||||
void RefreshSeriesMetadata(int libraryId, int seriesId);
|
||||
void ScheduleStatsTasks();
|
||||
void CancelStatsTasks();
|
||||
}
|
||||
}
|
||||
13
API/Interfaces/Services/IStatsService.cs
Normal file
13
API/Interfaces/Services/IStatsService.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System.Threading.Tasks;
|
||||
using API.DTOs;
|
||||
|
||||
namespace API.Interfaces.Services
|
||||
{
|
||||
public interface IStatsService
|
||||
{
|
||||
Task PathData(ClientInfoDto clientInfoDto);
|
||||
Task FinalizeStats();
|
||||
Task CollectRelevantData();
|
||||
Task CollectAndSendStatsData();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue