2 * Copyright (c) 2010-2024 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.samsungtv.internal.service.api;
15 import java.util.List;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.types.Command;
21 * Interface for Samsung TV services.
23 * @author Pauli Anttila - Initial contribution
24 * @author Nick Waterton - add checkConnection(), getServiceName(), refactoring
27 public interface SamsungTvService {
30 * Procedure to get list of supported channel names.
32 * @return List of supported
34 List<String> getSupportedChannelNames(boolean refresh);
37 * Procedure for sending command.
39 * @param channel the channel to which the command applies
40 * @param command the command to be handled
42 boolean handleCommand(String channel, Command command);
45 * Procedure for starting service.
51 * Procedure for stopping service.
57 * Procedure for clearing internal caches.
63 * Is this an UPnP configured service
65 * @return whether this service is an UPnP configured / discovered service
70 * Is service connected
72 * @return whether this service is connected or not
74 boolean checkConnection();
79 * @return String SERVICE_NAME
81 String getServiceName();