private ValuesJsonNode(ValuesJsonNode node, ValueJsonNode[]?translateNodes) { Type = node.Type; DefaultValue = node.DefaultValue; if (node.List != null) { List = ArrayHelper.Clone(node.List); if (translateNodes != null) { foreach (var translateNode in translateNodes) { int index = node.GetValueIndex(translateNode.Value); if (index != -1) { List[index] = node.List[index].TranslateWith(translateNode); } } } } }
private ParamJsonNode(ParamJsonNode node, ParamTranslateJsonNode translateNode) { Name = translateNode.Name; Description = translateNode.Description ?? node.Description; Values = node.Values.TranslateWith(translateNode.Values); }
public Builder(string name, ValuesJsonNode values) { Name = name; Values = values; }
public ParamJsonNode(string name, ValuesJsonNode values) { Name = name; Values = values; }