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.bluetooth.bluegiga.internal.command.system;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.bluetooth.bluegiga.internal.BlueGigaResponse;
17 import org.openhab.binding.bluetooth.bluegiga.internal.enumeration.BgApiResponse;
20 * Class to implement the BlueGiga command <b>whitelistAppend</b>.
22 * Add an entry to the running white list. By the white list you can define for example the remote
23 * devices which are allowed to establish a connection. See also Set Filtering Connect
24 * Selective and (if the white list is empty they will not be active). Do not use this command
25 * while advertising, scanning, or while being connected. The current list is discarded upon
26 * reset or power-cycle.
28 * This class provides methods for processing BlueGiga API commands.
30 * Note that this code is autogenerated. Manual changes may be overwritten.
32 * @author Chris Jackson - Initial contribution of Java code generator
35 public class BlueGigaWhitelistAppendResponse extends BlueGigaResponse {
36 public static int COMMAND_CLASS = 0x00;
37 public static int COMMAND_METHOD = 0x0A;
42 * BlueGiga API type is <i>BgApiResponse</i> - Java type is {@link BgApiResponse}
44 private BgApiResponse result;
47 * Response constructor
49 public BlueGigaWhitelistAppendResponse(int[] inputBuffer) {
50 // Super creates deserializer and reads header fields
53 event = (inputBuffer[0] & 0x80) != 0;
55 // Deserialize the fields
56 result = deserializeBgApiResponse();
62 * BlueGiga API type is <i>BgApiResponse</i> - Java type is {@link BgApiResponse}
64 * @return the current result as {@link BgApiResponse}
66 public BgApiResponse getResult() {
71 public String toString() {
72 final StringBuilder builder = new StringBuilder();
73 builder.append("BlueGigaWhitelistAppendResponse [result=");
74 builder.append(result);
76 return builder.toString();