add device id to reporting
This commit is contained in:
parent
01f4ee7fbb
commit
ad96be8fa7
|
@ -50,5 +50,6 @@ namespace MediaBrowser.Common.Implementations.Security
|
||||||
public string AppName { get; set; }
|
public string AppName { get; set; }
|
||||||
public string AppVersion { get; set; }
|
public string AppVersion { get; set; }
|
||||||
public string DeviceVersion { get; set; }
|
public string DeviceVersion { get; set; }
|
||||||
|
public string DeviceId { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,13 +45,15 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
|
||||||
var session = e.SessionInfo;
|
var session = e.SessionInfo;
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(session.Client) &&
|
if (!string.IsNullOrEmpty(session.Client) &&
|
||||||
!string.IsNullOrEmpty(session.DeviceName))
|
!string.IsNullOrEmpty(session.DeviceName) &&
|
||||||
|
!string.IsNullOrEmpty(session.DeviceId))
|
||||||
{
|
{
|
||||||
var keys = new List<string>
|
var keys = new List<string>
|
||||||
{
|
{
|
||||||
session.Client,
|
session.Client,
|
||||||
session.DeviceName
|
session.DeviceName,
|
||||||
};
|
session.DeviceId
|
||||||
|
};
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(session.DeviceVersion))
|
if (!string.IsNullOrEmpty(session.DeviceVersion))
|
||||||
{
|
{
|
||||||
|
@ -88,7 +90,8 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
|
||||||
{
|
{
|
||||||
AppName = session.Client,
|
AppName = session.Client,
|
||||||
AppVersion = session.ApplicationVersion,
|
AppVersion = session.ApplicationVersion,
|
||||||
DeviceVersion = session.DeviceVersion
|
DeviceVersion = session.DeviceVersion,
|
||||||
|
DeviceId = session.DeviceId
|
||||||
};
|
};
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(info.DeviceVersion))
|
if (string.IsNullOrEmpty(info.DeviceVersion))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user