2 * Copyright (c) 2010-2023 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.tr064.internal.config;
15 import java.util.List;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
20 * The {@link Tr064RootConfiguration} class contains fields mapping thing configuration parameters.
22 * @author Jan N. Klug - Initial contribution
25 public class Tr064RootConfiguration extends Tr064BaseThingConfiguration {
26 public String host = "";
27 public String user = "dslf-config";
28 public String password = "";
30 /* following parameters only available in fritzbox thing */
31 public List<String> tamIndices = List.of();
32 public List<String> callDeflectionIndices = List.of();
33 public List<String> missedCallDays = List.of();
34 public List<String> rejectedCallDays = List.of();
35 public List<String> inboundCallDays = List.of();
36 public List<String> outboundCallDays = List.of();
37 public List<String> callListDays = List.of();
38 public List<String> wanBlockIPs = List.of();
39 public int phonebookInterval = 600;
41 public boolean isValid() {
42 return !host.isEmpty() && !user.isEmpty() && !password.isEmpty();