]> git.basschouten.com Git - openhab-addons.git/blob
591910605178992f9c8214b5987b82c99633de4d
[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.io.hueemulation.internal.dto.response;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * This object describes the right hand side of "success".
19  * The response looks like this:
20  *
21  * <pre>
22  * {
23  *   "success":{
24  *      "username": "-the-username-"
25  *   }
26  * }
27  * </pre>
28  *
29  * @author David Graeff - Initial contribution
30  */
31 @NonNullByDefault
32 public class HueSuccessResponseCreateUser extends HueSuccessResponse {
33     public String username;
34     // For DTLS setup of the new hue entertain DTLS/UDP protocol
35     // The PSK identity matches the “username”, and the PSK key matches the “clientkey”.
36     public String clientkey;
37
38     public HueSuccessResponseCreateUser(String username, String clientkey) {
39         this.username = username;
40         this.clientkey = clientkey;
41     }
42 }