]> git.basschouten.com Git - openhab-addons.git/blob
3e5bed9807261dfe09b67346be3e9717cc1ca154
[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 /**
16  * The {@link SurePetcareUser} is the Java class used to represent a Sure Petcare API user. It's used to deserialize
17  * JSON API results.
18  *
19  * @author Rene Scherer - Initial contribution
20  */
21 public class SurePetcareUser extends SurePetcareBaseObject {
22
23     // "user":{
24     // "id":23465,
25     // "email_address":"rs@gugus.com",
26     // "first_name":"Admin",
27     // "last_name":"User",
28     // "country_id":77,
29     // "language_id":37,
30     // "marketing_opt_in":false,
31     // "terms_accepted":true,
32     // "weight_units":0,
33     // "time_format":0,
34     // "version":"MA==",
35     // "created_at":"2019-09-02T08:20:03+00:00",
36     // "updated_at":"2019-09-02T08:20:03+00:00",
37     // "notifications":{
38     // "device_status":true,
39     // "animal_movement":true,
40     // "intruder_movements":true,
41     // "new_device_pet":true,
42     // "household_management":true,
43     // "photos":true,
44     // "low_battery":true,
45     // "curfew":true,
46     // "feeding_activity":true
47     // }
48     // }
49
50     public String emailAddress;
51     public String firstName;
52     public String lastName;
53     public Integer countryId;
54     public Integer languageId;
55     // and various others not yet mapped
56
57     @Override
58     public String toString() {
59         return "User [id=" + id + ", email_address=" + emailAddress + ", first_name=" + firstName + ", last_name="
60                 + lastName + "]";
61     }
62 }