Implement app usage report

pull/702/head
Eric Reed 11 years ago
parent cb7fb3ae5c
commit 5477c61596

@ -39,9 +39,17 @@ namespace MediaBrowser.Common.Implementations.Security
public Task ReportAppUsage(ClientInfo app, CancellationToken cancellationToken)
{
// TODO: Implement this
cancellationToken.ThrowIfCancellationRequested();
var data = new Dictionary<string, string>
{
{ "feature", app.AppName ?? "Unknown App" },
{ "mac", app.DeviceId ?? _networkManager.GetMacAddress() },
{ "ver", app.AppVersion ?? "Unknown" },
{ "platform", app.DeviceName },
};
return Task.FromResult(true);
return _httpClient.Post(Constants.Constants.MbAdminUrl + "service/registration/ping", data, cancellationToken);
}
}

Loading…
Cancel
Save