22 lines
540 B
C#
22 lines
540 B
C#
|
namespace RhSolutions.QueryModifiers.DrinkingWaterHeatingFittings;
|
||
|
|
||
|
public abstract class Eurocone : DrinkingWaterHeatingFitting
|
||
|
{
|
||
|
protected virtual Dictionary<string, string> _titles { get; } = new();
|
||
|
|
||
|
protected override string? BuildRhSolutionsName(string query)
|
||
|
{
|
||
|
var diameterMatch = _diameter.Match(query);
|
||
|
if (diameterMatch.Success)
|
||
|
{
|
||
|
string diameter = diameterMatch.Groups["Diameter"].Value;
|
||
|
if (_titles.TryGetValue(diameter, out string? title))
|
||
|
{
|
||
|
return title;
|
||
|
}
|
||
|
else return null;
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
}
|