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.protocol;
15 import java.util.stream.Stream;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
20 * The {@link KnownAppId} lists all the known app IDs for Samsung TV's
23 * @author Nick Waterton - Initial contribution
26 public enum KnownAppId {
368 private final String value;
374 KnownAppId(String value) {
375 this.value = value.replace("$", "");
378 KnownAppId(KnownAppId otherAppId) {
379 this(otherAppId.getValue());
382 public String getValue() {
383 if ("".equals(value)) {
384 return this.name().replace("$", "");
386 return value.replace("$", "");
389 public static Stream<String> stream() {
390 return Stream.of(KnownAppId.values()).map(a -> a.getValue());