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

24 lines
593 B
C#

namespace RhSolutions.Parsers.Fittings;
[ParserKey("Желоб")]
public class SupportingClip : 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;
if (diameter == "16")
{
diameter += "/17";
}
output = $"{_title} {diameter}";
return true;
}
return false;
}
}