20 lines
510 B
C#
20 lines
510 B
C#
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;
|
||
}
|
||
} |