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

24 lines
613 B
C#
Raw Normal View History

2024-02-08 17:11:11 +03:00
namespace RhSolutions.Parsers.Fittings;
2024-01-27 14:39:35 +03:00
2024-02-08 17:11:11 +03:00
[ParserKey("Гофротруба RAUTITAN")]
2024-01-27 14:39:35 +03:00
public class ProtectivePipe : DrinkingWaterHeatingFitting
{
protected override string _title => "Гофротруба защитн.для ПЭ-трубы";
2024-02-08 17:11:11 +03:00
public override bool TryParse(string input, out string output)
2024-01-27 14:39:35 +03:00
{
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;
}
}