2023-04-14 21:40:54 -04:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
2023-05-22 00:58:36 -04:00
|
|
|
namespace vassago.Conversion
|
2023-04-14 21:40:54 -04:00
|
|
|
{
|
|
|
|
public class ConversionConfig
|
|
|
|
{
|
|
|
|
public class KnownUnit
|
|
|
|
{
|
|
|
|
public string Canonical { get; set; }
|
|
|
|
public IEnumerable<string> Aliases { get; set; }
|
|
|
|
}
|
|
|
|
public class LinearPair
|
|
|
|
{
|
|
|
|
public string item1 { get; set; }
|
|
|
|
public string item2 { get; set; }
|
|
|
|
public decimal factor { get; set; }
|
|
|
|
}
|
|
|
|
public IEnumerable<KnownUnit> Units { get; set; }
|
|
|
|
public IEnumerable<LinearPair> LinearPairs { get; set; }
|
|
|
|
}
|
|
|
|
}
|