public DeviceInfo GetDeviceInfo()
{
if (DeviceInfo == null)
{
var easClientDeviceInformation = new EasClientDeviceInformation();
DeviceInfo = new DeviceInfo
{
ClientSdk = GetClientSdk(),
HardwareId = UtilUap.GetHardwareId(),
NetworkAdapterId = UtilUap.GetNetworkAdapterId(),
AppDisplayName = UtilUap.GetAppDisplayName(),
AppVersion = UtilUap.GetAppVersion(),
AppPublisher = UtilUap.GetAppPublisher(),
DeviceType = UtilUap.GetDeviceType(),
DeviceManufacturer = UtilUap.GetDeviceManufacturer(),
Architecture = UtilUap.GetArchitecture(),
OsName = GetOsName(),
OsVersion = UtilUap.GetOsVersion(),
Language = UtilUap.GetLanguage(),
Country = UtilUap.GetCountry(),
ReadWindowsAdvertisingId = ReadWindowsAdvertisingId,
EasFriendlyName = UtilUap.ExceptionWrap(() => easClientDeviceInformation.FriendlyName),
EasId = UtilUap.ExceptionWrap(() => easClientDeviceInformation.Id.ToString()),
EasOperatingSystem = UtilUap.ExceptionWrap(() => easClientDeviceInformation.OperatingSystem),
EasSystemFirmwareVersion = UtilUap.ExceptionWrap(() => easClientDeviceInformation.SystemFirmwareVersion),
EasSystemHardwareVersion = UtilUap.ExceptionWrap(() => easClientDeviceInformation.SystemHardwareVersion),
EasSystemManufacturer = UtilUap.ExceptionWrap(() => easClientDeviceInformation.SystemManufacturer),
EasSystemProductName = UtilUap.ExceptionWrap(() => easClientDeviceInformation.SystemProductName),
EasSystemSku = UtilUap.ExceptionWrap(() => easClientDeviceInformation.SystemSku),
};
}
return DeviceInfo;
}