/// <summary> /// Force the sensor's Car Presence to say vacant /// </summary> private static async Task ForceVacant(string sensorId) { Console.WriteLine("Test /api/sensor/force-vacant"); Console.WriteLine("Force car presence to vacant (y/n)?"); string input = Console.ReadLine(); if (input == "y" || input == "Y") { // Sample JSON to send JObject json = new JObject { ["sensorId"] = sensorId }; try { Console.WriteLine("Sending Force Vacant..."); await SensorApi.ForceVacant(json.ToString()); Console.WriteLine("Force Vacant Sent" + "\n"); } catch (Exception ex) { Console.WriteLine("Method Error: " + ex.Message + "\n"); } } }