0
0
RhSolutions-Api/RhSolutions.Parsers/DrinkingWaterHeatingPipes/FlexPipe.cs

20 lines
510 B
C#
Raw Normal View History

2024-02-08 17:11:11 +03:00
namespace RhSolutions.Parsers.Pipes;
2024-01-26 15:50:41 +03:00
2024-02-08 17:11:11 +03:00
[ParserKey("Flex")]
2024-01-26 15:50:41 +03:00
public class FlexPipe : DrinkingWaterHeatingPipe
{
2024-02-16 14:06:46 +03:00
protected override string _title => "РЕХАУ FLEX";
2024-04-11 23:22:25 +03:00
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;
}
2024-01-26 15:50:41 +03:00
}