]> git.basschouten.com Git - openhab-addons.git/blob
23f5682250316ad442d2834be5a9c19a64cba360
[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.pjlinkdevice.internal.device.command.input;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.pjlinkdevice.internal.device.PJLinkDevice;
17 import org.openhab.binding.pjlinkdevice.internal.device.command.AbstractCommand;
18 import org.openhab.binding.pjlinkdevice.internal.device.command.ResponseException;
19
20 /**
21  * This command is used for retrieving the list of available inputs of the device as described in
22  * <a href="https://pjlink.jbmia.or.jp/english/data_cl2/PJLink_5-1.pdf">[PJLinkSpec]</a> chapter 4.9. Input toggling
23  * list query
24  *
25  * @author Nils Schnabel - Initial contribution
26  */
27 @NonNullByDefault
28 public class InputListQueryCommand extends AbstractCommand<InputListQueryRequest, InputListQueryResponse> {
29
30     public InputListQueryCommand(PJLinkDevice pjLinkDevice) {
31         super(pjLinkDevice);
32     }
33
34     @Override
35     public InputListQueryRequest createRequest() {
36         return new InputListQueryRequest();
37     }
38
39     @Override
40     public InputListQueryResponse parseResponse(String response) throws ResponseException {
41         return new InputListQueryResponse(response);
42     }
43 }