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.lutron.internal.protocol.leap.dto;
15 import java.util.regex.Pattern;
17 import org.openhab.binding.lutron.internal.protocol.leap.AbstractMessageBody;
19 import com.google.gson.annotations.SerializedName;
24 * @author Bob Adair - Initial contribution
26 public class Area extends AbstractMessageBody {
27 public static final Pattern AREA_HREF_PATTERN = Pattern.compile("/area/([0-9]+)");
29 @SerializedName("href")
32 @SerializedName("Name")
35 @SerializedName("Parent")
38 // @SerializedName("Category")
39 // public Category category;
41 @SerializedName("AssociatedDevices")
42 public Href[] associatedDevices;
44 @SerializedName("AssociatedOccupancyGroups")
45 public Href[] associatedOccupancyGroups;
47 @SerializedName("LoadShedding")
48 public Href loadShedding;
50 @SerializedName("OccupancySettings")
51 public Href occupancySettings;
53 @SerializedName("OccupancySensorSettings")
54 public Href occupancySensorSettings;
56 @SerializedName("DaylightingGainSettings")
57 public Href daylightingGainSettings;
62 public int getArea() {
63 return hrefNumber(AREA_HREF_PATTERN, href);