mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-08 01:38:11 +00:00
* New: UI Updates, Tag manager, More custom filters * fixup! Fix ScanFixture Unit Tests * Fixed: Sentry Errors from UI don't have release, branch, environment * Changed: Bump Mobile Detect for New Device Detection * Fixed: Build on changes to package.json * fixup! Add MetadataProfile filter option * fixup! Tag Note, Blacklist, Manual Import * fixup: Remove connectSection * fixup: root folder comment
23 lines
548 B
C#
23 lines
548 B
C#
using NzbDrone.Common.EnvironmentInfo;
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
namespace NzbDrone.Core.Analytics
|
|
{
|
|
public interface IAnalyticsService
|
|
{
|
|
bool IsEnabled { get; }
|
|
}
|
|
|
|
public class AnalyticsService : IAnalyticsService
|
|
{
|
|
private readonly IConfigFileProvider _configFileProvider;
|
|
|
|
public AnalyticsService(IConfigFileProvider configFileProvider)
|
|
{
|
|
_configFileProvider = configFileProvider;
|
|
}
|
|
|
|
public bool IsEnabled => _configFileProvider.AnalyticsEnabled;
|
|
}
|
|
}
|