2 * Copyright (c) 2010-2020 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.linky.internal.dto;
15 import java.util.ArrayList;
16 import java.util.List;
18 import org.eclipse.jdt.annotation.Nullable;
21 * The {@link AuthData} holds authentication information
23 * @author Gaƫl L'hopital - Initial contribution
26 public class AuthData {
27 public class AuthDataCallBack {
28 public class NameValuePair {
32 public @Nullable String valueAsString() {
33 if (value instanceof String) {
34 return (String) value;
42 public List<NameValuePair> output = new ArrayList<>();
43 public List<NameValuePair> input = new ArrayList<>();
47 public String template;
50 public List<AuthDataCallBack> callbacks = new ArrayList<>();