diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-28 10:21:07 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-28 10:21:07 -0400 |
| commit | 4fad85a8bd5b675f86ef4add3946ece570e960ec (patch) | |
| tree | 4c2c42a3acaa2e30e3f3643154808f53a4e65f2e /MediaBrowser.Common.Implementations/Security/UsageReporter.cs | |
| parent | b4016ae07efabce5909fe9202e8f860c654afe37 (diff) | |
report app usage to server
Diffstat (limited to 'MediaBrowser.Common.Implementations/Security/UsageReporter.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/Security/UsageReporter.cs | 17 |
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; } } } |
