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.bosesoundtouch.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * Configuration class for soundtouch notification channel
21 * @author Ivaylo Ivanov - Initial contribution
24 public class BoseSoundTouchNotificationChannelConfiguration {
26 public static final String MIN_FIRMWARE = "14";
27 public static final String MODEL_TYPE = "sm2";
29 public static final String NOTIFICATION_VOLUME = "notificationVolume";
30 public static final String NOTIFICATION_SERVICE = "notificationService";
31 public static final String NOTIFICATION_REASON = "notificationReason";
32 public static final String NOTIFICATION_MESSAGE = "notificationMessage";
34 public @Nullable Integer notificationVolume;
35 public @Nullable String notificationService;
36 public @Nullable String notificationReason;
37 public @Nullable String notificationMessage;
39 public static boolean isSupportedFirmware(String firmware) {
40 return firmware.compareTo(MIN_FIRMWARE) > 0;
43 public static boolean isSupportedHardware(String hardware) {
44 return MODEL_TYPE.equals(hardware);