]> git.basschouten.com Git - openhab-addons.git/blob
99510cf3a3617712f91e970a66be6e8f598b382d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.surepetcare.internal.dto;
14
15 import java.util.List;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * The {@link SurePetcareHousehold} is the Java class used as a DTO to represent a Sure Petcare Household.
21  *
22  * @author Rene Scherer - Initial contribution
23  */
24 public class SurePetcareHousehold extends SurePetcareBaseObject {
25
26     public String name;
27
28     public String shareCode;
29
30     public Integer timezoneId;
31
32     @SerializedName("users")
33     public List<HouseholdUsers> users = null;
34
35     @Override
36     public String toString() {
37         return "SurePetcareHousehold [id=" + id + ", name=" + name + "]";
38     }
39
40     public static class HouseholdUsers {
41         public class User {
42             @SerializedName("id")
43             public Long userId;
44             @SerializedName("name")
45             public String userName;
46         }
47
48         public User user;
49     }
50 }