0
0
RhSolutions-Api/RhSolutions.MLModifiers/DrinkingWaterHeatingFittings/ProtectivePipe.cs
Serghei Cebotari bcc833852b
All checks were successful
Test API / test (push) Successful in 2m33s
Add protection pipe
2024-01-27 14:39:35 +03:00

24 lines
647 B
C#

namespace RhSolutions.MLModifiers.DrinkingWaterHeatingFittings;
[MLModifierKey("Гофротруба RAUTITAN")]
public class ProtectivePipe : DrinkingWaterHeatingFitting
{
protected override string _title => "Гофротруба защитн.для ПЭ-трубы";
public override bool TryQueryModify(string input, out string output)
{
output = string.Empty;
var diameterMatch = _diameter.Match(input);
if (diameterMatch.Success)
{
string diameter = diameterMatch.Groups["Diameter"].Value;
if (diameter == "16")
{
diameter += "/17";
}
output = $"{_title} {diameter}";
return true;
}
return false;
}
}