Beispiel #1
0
        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),
                    EasSystemManufacturer = UtilUap.ExceptionWrap(() => easClientDeviceInformation.SystemManufacturer),
                    EasSystemProductName = UtilUap.ExceptionWrap(() => easClientDeviceInformation.SystemProductName),
                    EasSystemSku = UtilUap.ExceptionWrap(() => easClientDeviceInformation.SystemSku),
                };
            }
            return DeviceInfo;
        }
Beispiel #2
0
 internal PackageBuilder(AdjustConfig adjustConfig, DeviceInfo deviceInfo,
     DateTime createdAt)
 {
     AdjustConfig = adjustConfig;
     DeviceInfo = deviceInfo;
     CreatedAt = createdAt;
 }
Beispiel #3
0
 public DeviceInfo GetDeviceInfo()
 {
     if (DeviceInfo == null)
     {
         DeviceInfo = new DeviceInfo
         {
             ClientSdk = GetClientSdk(),
             DeviceUniqueId = GetDeviceUniqueId(),
             AppName = GetAppName(),
             AppVersion = GetAppVersion(),
             AppAuthor = GetAppAuthor(),
             AppPublisher = GetAppPublisher(),
             DeviceType = GetDeviceType(),
             DeviceName = GetDeviceName(),
             DeviceManufacturer = getDeviceManufacturer(),
             OsName = getOsName(),
             OsVersion = getOsVersion(),
             Language = getLanguage(),
             Country = getCountry(),
             ReadWindowsAdvertisingId = ReadWindowsAdvertisingId
         };
     }
     return DeviceInfo;
 }
Beispiel #4
0
 internal PackageBuilder(AdjustConfig adjustConfig, DeviceInfo deviceInfo, ActivityState activityState, DateTime createdAt)
     : this(adjustConfig, deviceInfo, createdAt)
 {
     ActivityState = activityState.Clone();
 }
Beispiel #5
0
 internal PackageBuilder(AdjustConfig adjustConfig, DeviceInfo deviceInfo, ActivityState activityState, DateTime createdAt)
     : this(adjustConfig, deviceInfo, createdAt)
 {
     ActivityState = activityState.Clone();
 }