]> git.basschouten.com Git - openhab-addons.git/blob
485a2fa7d47bdb0b773b9c21cdae6c3eb2ca4fa4
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.lgtvserial.internal.protocol.serial.commands;
14
15 import java.io.IOException;
16
17 import org.openhab.binding.lgtvserial.internal.protocol.serial.LGSerialCommunicator;
18 import org.openhab.binding.lgtvserial.internal.protocol.serial.LGSerialResponse;
19 import org.openhab.core.thing.ChannelUID;
20
21 /**
22  * This command handles the IR key code M/C command.
23  *
24  * @author Richard Lavoie - Initial contribution
25  *
26  */
27 public class IRKeyCodeCommand extends BaseStringCommand {
28
29     protected IRKeyCodeCommand(int setId) {
30         super('m', 'c', setId);
31     }
32
33     @Override
34     public void execute(ChannelUID channel, LGSerialCommunicator comm, Object data) throws IOException {
35         if (data != null) {
36             super.execute(channel, comm, data);
37         }
38     }
39
40     @Override
41     public LGSerialResponse parseResponse(String response) {
42         return null;
43     }
44 }