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

20 lines
562 B
C#

namespace RhSolutions.Parsers.Fittings;
[ParserKey("Переходник на евроконус")]
public class EuroconeAdapter : DrinkingWaterHeatingFitting
{
protected override string _title => "Переходник на евроконус";
public override bool TryParse(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;
}
}