public bool TurnOnWithDelay(Device item) { //Makesure that we halt for 1 second so that the Telldus stick have time to send the signal. bool result = tdTurnOn(item.ID); System.Threading.Thread.Sleep(1000); return result; }
public bool TurnOffWithDelay(Device item) { bool result = tdTurnOff(item.ID); System.Threading.Thread.Sleep(1000); return result; }
/// <summary> /// Turns on a specific device. /// </summary> /// <param name="item">The device in question.</param> /// <returns>True if the command was successfull.</returns> public bool TurnOn(Device item) { return tdTurnOn(item.ID); }
/// <summary> /// Sends the bell signal. /// </summary> /// <param name="item">The device in question.</param> /// <returns>True if the command was successfull.</returns> public bool Bell(Device item) { return tdBell(item.ID); }