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.yamahareceiver.internal.state;
15 import java.util.HashMap;
16 import java.util.HashSet;
20 import org.openhab.binding.yamahareceiver.internal.YamahaReceiverBindingConstants;
23 * Basic AVR state (name, version, available zones, etc)
25 * @author David Graeff - Initial contribution
26 * @author Tomasz Maruszak - DAB support, Spotify support, better feature detection
28 public class DeviceInformationState implements Invalidateable {
30 // Some AVR information
33 public String version;
34 public final Set<YamahaReceiverBindingConstants.Zone> zones = new HashSet<>();
35 public final Set<YamahaReceiverBindingConstants.Feature> features = new HashSet<>();
37 * Stores additional properties for the device (protocol specific)
39 public final Map<String, Object> properties = new HashMap<>();
41 public DeviceInformationState() {
45 // If we lost the connection, invalidate the state.
47 public void invalidate() {