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;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Container class to hold {@link BlueGigaCommand} and transaction id.
20 * @author Pauli Anttila - Initial contribution
24 public class BlueGigaUniqueCommand {
25 private BlueGigaCommand msg;
26 private int transactionId;
28 BlueGigaUniqueCommand(BlueGigaCommand message, int transactionId) {
30 this.transactionId = transactionId;
33 int getTransactionId() {
37 BlueGigaCommand getMessage() {
42 public String toString() {
43 final StringBuilder builder = new StringBuilder();
44 builder.append("BlueGigaUniqueCommand [transactionId=");
45 builder.append(transactionId);
46 builder.append(", BlueGigaCommand=");
49 return builder.toString();