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

27 lines
758 B
C#
Raw Permalink 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.Fittings;
[ParserKey("Угольник настенный наружный")]
public class ThreadElbowWallExternal : DrinkingWaterHeatingFitting
{
protected override string _title => "Угольник настенный с наружной резьбой";
public override bool TryParse(string input, out string output)
{
output = string.Empty;
var diameterMatch = _diameter.Match(input);
if (!diameterMatch.Success)
{
return false;
}
var threadMatch = _thread.Match(input);
if (!threadMatch.Success)
{
return false;
}
string diameter = diameterMatch.Groups["Diameter"].Value;
string thread = threadMatch.Groups["Thread"].Value;
output = $"{_title} {diameter}-R {thread}";
return true;
}
}