2 * Copyright (c) 2010-2020 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.gardena.internal.model;
15 import com.google.gson.annotations.SerializedName;
18 * Represents a Gardena session.
20 * @author Gerhard Riegler - Initial contribution
22 public class Session {
27 @SerializedName("attributes")
28 private SessionAttributes sessionAttributes = new SessionAttributes();
31 this.created = System.currentTimeMillis();
35 * Returns the token of the session.
37 public String getToken() {
42 * Returns the creation timestamp of the session.
44 public long getCreated() {
49 * Returns the session attributes.
51 public SessionAttributes getSessionAttributes() {
52 return sessionAttributes;