]> git.basschouten.com Git - openhab-addons.git/blob
538788cf86bd097971690d4e9851982c96c711b2
[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.amazonechocontrol.internal.jsons;
14
15 import java.util.Map;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19
20 import com.google.gson.annotations.SerializedName;
21
22 /**
23  * The {@link JsonExchangeTokenResponse} encapsulate the GSON response data of the token exchange
24  *
25  * @author Michael Geramb - Initial contribution
26  */
27 @NonNullByDefault
28 public class JsonExchangeTokenResponse {
29     public @Nullable Response response;
30
31     public static class Response {
32         public @Nullable Tokens tokens;
33     }
34
35     public static class Tokens {
36         public @Nullable Map<String, Cookie[]> cookies;
37     }
38
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;
52     }
53 }