0
0
RhSolutions-Api/RhSolutions.MLModifiers/DrinkingWaterHeatingFittings/EuroconeAdapter.cs

20 lines
596 B
C#
Raw Normal View History

2024-01-26 15:50:41 +03:00
namespace RhSolutions.MLModifiers.DrinkingWaterHeatingFittings;
2023-10-15 22:04:33 +03:00
2024-01-26 15:50:41 +03:00
[MLModifierKey("Переходник на евроконус")]
2023-10-15 22:04:33 +03:00
public class EuroconeAdapter : DrinkingWaterHeatingFitting
{
protected override string _title => "Переходник на евроконус";
2023-10-22 13:43:18 +03:00
public override bool TryQueryModify(string input, out string output)
2023-10-15 22:04:33 +03:00
{
2023-10-22 13:43:18 +03:00
output = string.Empty;
var diameterMatch = _diameter.Match(input);
2023-10-15 22:04:33 +03:00
if (diameterMatch.Success)
{
string diameter = diameterMatch.Groups["Diameter"].Value;
2023-10-22 13:43:18 +03:00
output = $"{_title} {diameter}-G 3/4";
return true;
2023-10-15 22:04:33 +03:00
}
2023-10-22 13:43:18 +03:00
return false;
2023-10-15 22:04:33 +03:00
}
}