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.semsportal.internal.dto;
16 * A token is returned in a successful {@link LoginRequest} and is needed to authorize any subsequent requests.
18 * @author Iwan Bron - Initial contribution
20 public class SEMSToken {
22 private long timestamp;
24 private String client;
25 private String version;
26 private String language;
28 public SEMSToken(String version, String client, String language) {
29 this.version = version;
31 this.language = language;
34 public String getUid() {
38 public void setUid(String uid) {
42 public long getTimestamp() {
46 public void setTimestamp(long timestamp) {
47 this.timestamp = timestamp;
50 public String getToken() {
54 public void setToken(String token) {
58 public String getClient() {
62 public void setClient(String client) {
66 public String getVersion() {
70 public void setVersion(String version) {
71 this.version = version;
74 public String getLanguage() {
78 public void setLanguage(String language) {
79 this.language = language;