]> git.basschouten.com Git - openhab-addons.git/blob
17c729239faec7cf16272a939310c2206888acd7
[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.hue.internal.api.dto.clip1;
14
15 import java.util.Date;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * A whitelisted user.
21  *
22  * @author Q42 - Initial contribution
23  * @author Denis Dudnik - moved Jue library source code inside the smarthome Hue binding
24  */
25 public class User {
26     @SerializedName("last use date")
27     private Date lastUseDate;
28
29     @SerializedName("create date")
30     private Date createDate;
31
32     private String name;
33
34     /**
35      * Returns the last time a command was issued as this user.
36      *
37      * @return time of last command by this user
38      */
39     public Date getLastUseDate() {
40         return lastUseDate;
41     }
42
43     /**
44      * Returns the date this user was created.
45      *
46      * @return creation date of user
47      */
48     public Date getCreationDate() {
49         return createDate;
50     }
51
52     /**
53      * Returns the username of this user.
54      *
55      * @return username
56      */
57     public String getUsername() {
58         return name;
59     }
60 }