]> git.basschouten.com Git - openhab-addons.git/blob
ff441f4f8f22119214a57b9a16e0bc98fa0e605b
[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.semsportal.internal.dto;
14
15 /**
16  * A token is returned in a successful {@link LoginRequest} and is needed to authorize any subsequent requests.
17  *
18  * @author Iwan Bron - Initial contribution
19  */
20 public class SEMSToken {
21     private String uid;
22     private long timestamp;
23     private String token;
24     private String client;
25     private String version;
26     private String language;
27
28     public SEMSToken(String version, String client, String language) {
29         this.version = version;
30         this.client = client;
31         this.language = language;
32     }
33
34     public String getUid() {
35         return uid;
36     }
37
38     public void setUid(String uid) {
39         this.uid = uid;
40     }
41
42     public long getTimestamp() {
43         return timestamp;
44     }
45
46     public void setTimestamp(long timestamp) {
47         this.timestamp = timestamp;
48     }
49
50     public String getToken() {
51         return token;
52     }
53
54     public void setToken(String token) {
55         this.token = token;
56     }
57
58     public String getClient() {
59         return client;
60     }
61
62     public void setClient(String client) {
63         this.client = client;
64     }
65
66     public String getVersion() {
67         return version;
68     }
69
70     public void setVersion(String version) {
71         this.version = version;
72     }
73
74     public String getLanguage() {
75         return language;
76     }
77
78     public void setLanguage(String language) {
79         this.language = language;
80     }
81 }