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

24 lines
593 B
C#
Raw Permalink Normal View History

2024-02-08 17:11:11 +03:00
namespace RhSolutions.Parsers.Fittings;
2023-10-14 13:59:30 +03:00
2024-02-08 17:11:11 +03:00
[ParserKey("Желоб")]
2023-10-14 13:59:30 +03:00
public class SupportingClip : DrinkingWaterHeatingFitting
{
2023-10-14 14:41:50 +03:00
protected override string _title => "Фиксирующий желоб для ПЭ-трубы";
2024-02-08 17:11:11 +03:00
public override bool TryParse(string input, out string output)
2023-10-14 14:41:50 +03:00
{
2023-10-22 13:43:18 +03:00
output = string.Empty;
var diameterMatch = _diameter.Match(input);
2023-10-14 14:41:50 +03:00
if (diameterMatch.Success)
{
string diameter = diameterMatch.Groups["Diameter"].Value;
if (diameter == "16")
{
diameter += "/17";
}
2023-10-22 13:43:18 +03:00
output = $"{_title} {diameter}";
return true;
2023-10-14 14:41:50 +03:00
}
2023-10-22 13:43:18 +03:00
return false;
2023-10-14 14:41:50 +03:00
}
2023-10-14 13:59:30 +03:00
}