2 * Copyright (c) 2010-2023 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
26 public interface SamsungTvService {
29 * Procedure to get list of supported channel names.
31 * @return List of supported
33 List<String> getSupportedChannelNames();
36 * Procedure for sending command.
38 * @param channel the channel to which the command applies
39 * @param command the command to be handled
41 void handleCommand(String channel, Command command);
44 * Procedure for register event listener.
47 * Event listener instance to handle events.
49 void addEventListener(EventListener listener);
52 * Procedure for remove event listener.
55 * Event listener instance to remove.
57 void removeEventListener(EventListener listener);
60 * Procedure for starting service.
66 * Procedure for stopping service.
72 * Procedure for clearing internal caches.
78 * Is this an UPnP configured service
80 * @return whether this service is an UPnP configured / discovered service