]> git.basschouten.com Git - openhab-addons.git/blob
6e20453ccb9c8f7e3681ec697528c0eb644ec632
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.ArrayList;
16 import java.util.List;
17
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
26 public class AuthData {
27     public class AuthDataCallBack {
28         public class NameValuePair {
29             public String name;
30             public Object value;
31
32             public @Nullable String valueAsString() {
33                 if (value instanceof String) {
34                     return (String) value;
35                 }
36                 return null;
37             }
38         }
39
40         public String type;
41
42         public List<NameValuePair> output = new ArrayList<>();
43         public List<NameValuePair> input = new ArrayList<>();
44     }
45
46     public String authId;
47     public String template;
48     public String stage;
49     public String header;
50     public List<AuthDataCallBack> callbacks = new ArrayList<>();
51 }