aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/Security/UsageReporter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Common.Implementations/Security/UsageReporter.cs')
-rw-r--r--MediaBrowser.Common.Implementations/Security/UsageReporter.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/MediaBrowser.Common.Implementations/Security/UsageReporter.cs b/MediaBrowser.Common.Implementations/Security/UsageReporter.cs
index e32940be9..7c8127db3 100644
--- a/MediaBrowser.Common.Implementations/Security/UsageReporter.cs
+++ b/MediaBrowser.Common.Implementations/Security/UsageReporter.cs
@@ -19,7 +19,7 @@ namespace MediaBrowser.Common.Implementations.Security
_httpClient = httpClient;
}
- public Task ReportUsage(CancellationToken cancellationToken)
+ public Task ReportServerUsage(CancellationToken cancellationToken)
{
cancellationToken.ThrowIfCancellationRequested();
@@ -36,5 +36,20 @@ namespace MediaBrowser.Common.Implementations.Security
return _httpClient.Post(Constants.Constants.MbAdminUrl + "service/registration/ping", data, cancellationToken);
}
+
+ public Task ReportAppUsage(ClientInfo app, CancellationToken cancellationToken)
+ {
+ // TODO: Implement this
+ // Make sure to handle DeviceVersion being
+
+ return Task.FromResult(true);
+ }
+ }
+
+ public class ClientInfo
+ {
+ public string AppName { get; set; }
+ public string AppVersion { get; set; }
+ public string DeviceVersion { get; set; }
}
}