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.hdpowerview.internal.dto.gen3;
15 import java.nio.charset.StandardCharsets;
16 import java.util.Base64;
17 import java.util.List;
19 import org.eclipse.jdt.annotation.NonNullByDefault;
22 * DTO for a scene as returned by an HD PowerView Generation 3 Gateway.
24 * @author Andrew Fiddian-Green - Initial contribution.
29 private @NonNullByDefault({}) String name;
30 private @NonNullByDefault({}) String ptName;
31 private @NonNullByDefault({}) String color;
32 private @NonNullByDefault({}) String icon;
33 private @NonNullByDefault({}) List<Integer> roomIds;
35 public String getColor() {
39 public String getIcon() {
47 public String getName() {
48 return String.join(" ", new String(Base64.getDecoder().decode(name), StandardCharsets.UTF_8), ptName);
51 public String getPtName() {
55 public List<Integer> getRoomIds() {
56 List<Integer> roomIds = this.roomIds;
57 return roomIds != null ? roomIds : List.of();