0
0
RhSolutions-Api/RhSolutions.MLModifiers/DrinkingWaterHeatingFittings/EuroconeAdapter.cs

20 lines
596 B
C#

namespace RhSolutions.MLModifiers.DrinkingWaterHeatingFittings;
[MLModifierKey("Переходник на евроконус")]
public class EuroconeAdapter : DrinkingWaterHeatingFitting
{
protected override string _title => "Переходник на евроконус";
public override bool TryQueryModify(string input, out string output)
{
output = string.Empty;
var diameterMatch = _diameter.Match(input);
if (diameterMatch.Success)
{
string diameter = diameterMatch.Groups["Diameter"].Value;
output = $"{_title} {diameter}-G 3/4";
return true;
}
return false;
}
}