]> git.basschouten.com Git - openhab-addons.git/blob
57d96a40900be8e88a0b0055bc193d2e67d5429b
[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.nest.internal.wwn.config;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The configuration for the WWN account, allowing it to talk to Nest.
20  *
21  * @author David Bennett - Initial contribution
22  */
23 @NonNullByDefault
24 public class WWNAccountConfiguration {
25     public static final String PRODUCT_ID = "productId";
26     /** Product ID from the Nest product page. */
27     public String productId = "";
28
29     public static final String PRODUCT_SECRET = "productSecret";
30     /** Product secret from the Nest product page. */
31     public String productSecret = "";
32
33     public static final String PINCODE = "pincode";
34     /** Product pincode from the Nest authorization page. */
35     public @Nullable String pincode;
36
37     public static final String ACCESS_TOKEN = "accessToken";
38     /** The access token to use once retrieved from Nest. */
39     public @Nullable String accessToken;
40 }