Esempio n. 1
0
        private string GetTemperatureString(double temperature)
        {
            var temperatureUnits = NSUnitTemperature.Celsius;

            NSMeasurement <NSUnitTemperature> measurement = new NSMeasurement <NSUnitTemperature>(temperature, temperatureUnits);

            return(temperature.ToString() + measurement.Unit.Symbol);
        }
Esempio n. 2
0
 public INSetClimateSettingsInCarIntent(bool?enableFan, bool?enableAirConditioner, bool?enableClimateControl, bool?enableAutoMode, INCarAirCirculationMode airCirculationMode, NSNumber fanSpeedIndex, NSNumber fanSpeedPercentage, INRelativeSetting relativeFanSpeedSetting, NSMeasurement <NSUnitTemperature> temperature, INRelativeSetting relativeTemperatureSetting, INCarSeat climateZone) :
     this(enableFan.HasValue ? new NSNumber(enableFan.Value) : null, enableAirConditioner.HasValue ? new NSNumber(enableAirConditioner.Value) : null,
          enableClimateControl.HasValue ? new NSNumber(enableClimateControl.Value) : null, enableAutoMode.HasValue ? new NSNumber(enableAutoMode.Value) : null,
          airCirculationMode, fanSpeedIndex, fanSpeedPercentage, relativeFanSpeedSetting, temperature, relativeTemperatureSetting, climateZone)
 {
 }