コード例 #1
0
        private void Setup()
        {
            Task.Factory.StartNew(() =>
            {
                try
                {
                    var data = new Api.Rest.Mothership.Data
                    {
                        DeviceUniqueId           = GetPhoneVar("DeviceUniqueId"),
                        DeviceFirmwareVersion    = GetPhoneVar("DeviceFirmwareVersion"),
                        DeviceManufacturer       = GetPhoneVar("DeviceManufacturer"),
                        DeviceName               = GetPhoneVar("DeviceName"),
                        DeviceTotalMemory        = GetPhoneVar("DeviceTotalMemory"),
                        PhysicalScreenResolution = GetPhoneVar("PhysicalScreenResolution"),
                    };

                    var mothership = new Api.Rest.Mothership();
                    mothership.Fire(data);
                }
                catch { }
            });
        }
コード例 #2
0
ファイル: MainViewModel.cs プロジェクト: jbouwens/Put.io.Wp
        private void Setup()
        {
            Task.Factory.StartNew(() =>
            {
                try
                {
                    var data = new Api.Rest.Mothership.Data
                    {
                        DeviceUniqueId = GetPhoneVar("DeviceUniqueId"),
                        DeviceFirmwareVersion = GetPhoneVar("DeviceFirmwareVersion"),
                        DeviceManufacturer = GetPhoneVar("DeviceManufacturer"),
                        DeviceName = GetPhoneVar("DeviceName"),
                        DeviceTotalMemory = GetPhoneVar("DeviceTotalMemory"),
                        PhysicalScreenResolution = GetPhoneVar("PhysicalScreenResolution"),
                    };

                    var mothership = new Api.Rest.Mothership();
                    mothership.Fire(data);
                }
                catch { }
            });
        }