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.amazonechocontrol.internal.jsons;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
20 import com.google.gson.annotations.SerializedName;
23 * The {@link JsonExchangeTokenResponse} encapsulate the GSON response data of the token exchange
25 * @author Michael Geramb - Initial contribution
28 public class JsonExchangeTokenResponse {
29 public @Nullable Response response;
31 public static class Response {
32 public @Nullable Tokens tokens;
35 public static class Tokens {
36 public @Nullable Map<String, Cookie[]> cookies;
39 public static class Cookie {
40 @SerializedName("Path")
41 public @Nullable String path;
42 @SerializedName("Secure")
43 public @Nullable Boolean secure;
44 @SerializedName("Value")
45 public @Nullable String value;
46 @SerializedName("Expires")
47 public @Nullable String expires;
48 @SerializedName("HttpOnly")
49 public @Nullable Boolean httpOnly;
50 @SerializedName("Name")
51 public @Nullable String name;