0
0
RhSolutions-Api/RhSolutions.QueryModifiers/DrinkingWaterHeatingFittings/SupportingClip.cs

23 lines
600 B
C#
Raw Normal View History

2023-10-14 13:59:30 +03:00
namespace RhSolutions.QueryModifiers.DrinkingWaterHeatingFittings;
public class SupportingClip : DrinkingWaterHeatingFitting
{
2023-10-14 14:41:50 +03:00
protected override string _title => "Фиксирующий желоб для ПЭ-трубы";
2023-10-22 13:43:18 +03:00
public override bool TryQueryModify(string input, out string output)
2023-10-14 14:41:50 +03:00
{
2023-10-22 13:43:18 +03:00
output = string.Empty;
var diameterMatch = _diameter.Match(input);
2023-10-14 14:41:50 +03:00
if (diameterMatch.Success)
{
string diameter = diameterMatch.Groups["Diameter"].Value;
if (diameter == "16")
{
diameter += "/17";
}
2023-10-22 13:43:18 +03:00
output = $"{_title} {diameter}";
return true;
2023-10-14 14:41:50 +03:00
}
2023-10-22 13:43:18 +03:00
return false;
2023-10-14 14:41:50 +03:00
}
2023-10-14 13:59:30 +03:00
}