0
0
RhSolutions-Api/RhSolutions.Parsers/DrinkingWaterHeatingPipes/FlexPipe.cs
Serghei Cebotari ab91f7c24b
All checks were successful
Test and release / test (push) Successful in 2m17s
Test and release / release-image (push) Successful in 5m34s
Fix РЕХАУ pipes lookup
2024-04-11 23:22:25 +03:00

20 lines
510 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace RhSolutions.Parsers.Pipes;
[ParserKey("Flex")]
public class FlexPipe : DrinkingWaterHeatingPipe
{
protected override string _title => "РЕХАУ FLEX";
public override bool TryParse(string input, out string output)
{
output = string.Empty;
var diameterMatch = _diameter.Match(input);
if (!diameterMatch.Success)
{
return false;
}
var diameter = int.Parse(diameterMatch.Groups["Diameter"].Value);
output = $"Труба {_title} {_diameterNames[diameter]}";
return true;
}
}