]> git.basschouten.com Git - openhab-addons.git/blob
e5c04095ec36f4bf7bbcaa36f963c000d770795a
[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.vesync.internal.dto.requests;
14
15 import org.openhab.binding.vesync.internal.dto.responses.VeSyncUserSession;
16 import org.openhab.binding.vesync.internal.exceptions.AuthenticationException;
17
18 import com.google.gson.annotations.SerializedName;
19
20 /**
21  * The {@link VeSyncRequestV1ManagedDeviceDetails} is the Java class as a DTO to hold login credentials for the Vesync
22  * API.
23  *
24  * @author David Goodyear - Initial contribution
25  */
26 public class VeSyncRequestV1ManagedDeviceDetails extends VeSyncAuthenticatedRequest {
27
28     @SerializedName("mobileId")
29     public String mobileId = "1234567890123456";
30
31     @SerializedName("uuid")
32     public String uuid = null;
33
34     public VeSyncRequestV1ManagedDeviceDetails(final String deviceUuid) {
35         uuid = deviceUuid;
36         method = "deviceDetail";
37     }
38
39     public VeSyncRequestV1ManagedDeviceDetails(final VeSyncUserSession user) throws AuthenticationException {
40         super(user);
41         method = "deviceDetail";
42     }
43
44     public VeSyncRequestV1ManagedDeviceDetails(final VeSyncUserSession user, String deviceUuid)
45             throws AuthenticationException {
46         this(user);
47         uuid = deviceUuid;
48     }
49
50     public String getUuid() {
51         return uuid;
52     }
53
54     public String getMobileId() {
55         return mobileId;
56     }
57 }