public string addConfig(int BaseVehicleID, int SubmodelID, string configs = "") { ACESBaseVehicle basevehicle = new ACESBaseVehicle(); List<int> configids = new List<int>(); if (configs != "") { configids = configs.Split(',').Select(s => int.Parse(s)).ToList(); basevehicle = new ACES().addConfig(BaseVehicleID, SubmodelID, configids); } else { new ACES().AddSubmodel(BaseVehicleID, SubmodelID); basevehicle = new ACES().GetVehicle(BaseVehicleID,SubmodelID); } return JsonConvert.SerializeObject(basevehicle); }
public string AddCustomConfig(int vehicleID, int attrID) { ACESBaseVehicle basevehicle = new ACESBaseVehicle(); basevehicle = new ACES().addCustomConfig(vehicleID, attrID); return JsonConvert.SerializeObject(basevehicle); }
public string removeAttribute(int vehicleID, int attributeID) { ACESBaseVehicle basevehicle = new ACESBaseVehicle(); basevehicle = new ACES().removeAttribute(vehicleID, attributeID); return JsonConvert.SerializeObject(basevehicle); }
public string addAttributeToVehicle(int vehicleID, int vcdbID, int typeID, string value) { ACESBaseVehicle basevehicle = new ACESBaseVehicle(); basevehicle = new ACES().addAttributeToVehicle(vehicleID, vcdbID, typeID, value); return JsonConvert.SerializeObject(basevehicle); }
public string mergeVehicles(int targetID, int currentID, bool deleteCurrent = true) { ACESBaseVehicle basevehicle = new ACESBaseVehicle(); basevehicle = new ACES().mergeVehicles(targetID, currentID, deleteCurrent); return JsonConvert.SerializeObject(basevehicle); }