public void setUnit(string chars) { UnitOfMeasureJSON.TypeValueKnownValues known = UnitOfMeasureJSON.stringToValue(chars); UnitOfMeasureJSON.TypeValue new_value = new UnitOfMeasureJSON.TypeValue(); if (known == UnitOfMeasureJSON.TypeValueKnownValues.Value__none) { new_value.in_known_list = false; new_value.string_value = chars; } else { new_value.in_known_list = true; new_value.list_value = known; } setUnit(new_value); }
public void setUnit(UnitOfMeasureJSON.TypeValue new_value) { setUnit(new UnitOfMeasureJSON(new_value)); }
public void appendOutputUnit(UnitOfMeasureJSON.TypeValue new_value) { appendOutputUnit(new UnitOfMeasureJSON(new_value)); }