public void readCurrentMainInput() { string resp = sendLGCommand("xb", "FF"); int currInp = parseLGResponseInt(resp); Console.Out.WriteLine("Current Input:" + currInp); switch (currInp) { case 23: currentMainInput = LGTVInput.AV1; break; case 1: currentMainInput = LGTVInput.TVCable; break; case 90: currentMainInput = LGTVInput.HDMIDVI1; break; } Console.Out.WriteLine("CurrInputEnum:" + currentMainInput); }
public void setMainInputSource(LGTVInput input) { Console.Out.WriteLine("**** Setting Main input to " + input); String resp = sendLGCommand("xb", padValueForLGInt(Convert.ToInt32(input))); }