示例#1
0
 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);
                 }
             }
         }
     }
 }
示例#2
0
 private ParamJsonNode(ParamJsonNode node, ParamTranslateJsonNode translateNode)
 {
     Name        = translateNode.Name;
     Description = translateNode.Description ?? node.Description;
     Values      = node.Values.TranslateWith(translateNode.Values);
 }
示例#3
0
 public Builder(string name, ValuesJsonNode values)
 {
     Name   = name;
     Values = values;
 }
示例#4
0
 public ParamJsonNode(string name, ValuesJsonNode values)
 {
     Name   = name;
     Values = values;
 }