/ src / modules / launcher / Plugins / Community.PowerToys.Run.Plugin.UnitConverter / ConvertModel.cs
ConvertModel.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 namespace Community.PowerToys.Run.Plugin.UnitConverter 6 { 7 public class ConvertModel 8 { 9 public double Value { get; set; } 10 11 public string FromUnit { get; set; } 12 13 public string ToUnit { get; set; } 14 15 public ConvertModel() 16 { 17 } 18 19 public ConvertModel(double value, string fromUnit, string toUnit) 20 { 21 Value = value; 22 FromUnit = fromUnit; 23 ToUnit = toUnit; 24 } 25 } 26 }