]> git.basschouten.com Git - openhab-addons.git/blob
e9dc250af1b077f03523d5624091681a5387b5ce
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.sensorcommunity.internal.mock;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.sensorcommunity.internal.handler.PMHandler;
18 import org.openhab.core.thing.Thing;
19 import org.openhab.core.types.State;
20
21 /**
22  * The {@link PMHandlerExtension} Test Particualte Matter Handler Extension with additonal state queries
23  *
24  * @author Bernd Weymann - Initial contribution
25  */
26 @NonNullByDefault
27 public class PMHandlerExtension extends PMHandler {
28
29     public PMHandlerExtension(Thing thing) {
30         super(thing);
31     }
32
33     public ConfigStatus getConfigStatus() {
34         return configStatus;
35     }
36
37     public UpdateStatus getUpdateStatus() {
38         return lastUpdateStatus;
39     }
40
41     public @Nullable State getPM25Cache() {
42         return pm25Cache;
43     }
44
45     public @Nullable State getPM100Cache() {
46         return pm100Cache;
47     }
48 }