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.hue.internal.dto.clip2;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.hue.internal.dto.clip2.enums.Archetype;
19 import com.google.gson.annotations.SerializedName;
22 * DTO for CLIP 2 product data.
24 * @author Andrew Fiddian-Green - Initial contribution
27 public class ProductData {
28 private @NonNullByDefault({}) @SerializedName("model_id") String modelId;
29 private @NonNullByDefault({}) @SerializedName("manufacturer_name") String manufacturerName;
30 private @NonNullByDefault({}) @SerializedName("product_name") String productName;
31 private @NonNullByDefault({}) @SerializedName("product_archetype") String productArchetype;
32 private @NonNullByDefault({}) Boolean certified;
33 private @NonNullByDefault({}) @SerializedName("software_version") String softwareVersion;
34 private @Nullable @SerializedName("hardware_platform_type") String hardwarePlatformType;
36 public String getModelId() {
40 public String getManufacturerName() {
41 return manufacturerName;
44 public String getProductName() {
48 public Archetype getProductArchetype() {
49 return Archetype.of(productArchetype);
52 public Boolean getCertified() {
53 return certified != null ? certified : false;
56 public String getSoftwareVersion() {
57 return softwareVersion != null ? softwareVersion : "";
60 public @Nullable String getHardwarePlatformType() {
61 return hardwarePlatformType;