]> git.basschouten.com Git - openhab-addons.git/blob
5cb66b53803f5a77f1bb0b218fd5d42324130d41
[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.linky.internal.dto;
14
15 import java.util.List;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19
20 /**
21  * The {@link AuthData} holds authentication information
22  *
23  * @author GaĆ«l L'hopital - Initial contribution
24  */
25 @NonNullByDefault
26 public class AuthData {
27     public class AuthDataCallBack {
28         public class NameValuePair {
29             public @Nullable String name;
30             public @Nullable Object value;
31
32             public @Nullable String valueAsString() {
33                 return (value instanceof String) ? (String) value : null;
34             }
35         }
36
37         public @Nullable String type;
38
39         public List<NameValuePair> output = List.of();
40         public List<NameValuePair> input = List.of();
41     }
42
43     public @Nullable String authId;
44     public @Nullable String template;
45     public @Nullable String stage;
46     public @Nullable String header;
47     public List<AuthDataCallBack> callbacks = List.of();
48 }