]> git.basschouten.com Git - openhab-addons.git/blob
255270bdb4408ecab7814065c9f37c179bc405ba
[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.bluetooth.bluez.internal.events;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * This event is triggered when a device's GATT services get resovled/unresolved.
19  * Services become resolved after connecting to a device and become unresolved
20  * either due to error or connection issues.
21  *
22  *
23  * @author Benjamin Lafois - Initial Contribution
24  *
25  */
26 @NonNullByDefault
27 public class ServicesResolvedEvent extends BlueZEvent {
28
29     private boolean resolved;
30
31     public ServicesResolvedEvent(String dbusPath, boolean resolved) {
32         super(dbusPath);
33         this.resolved = resolved;
34     }
35
36     public boolean isResolved() {
37         return resolved;
38     }
39
40     @Override
41     public void dispatch(BlueZEventListener listener) {
42         listener.onServicesResolved(this);
43     }
44 }