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.tr064.internal.config;
15 import java.util.Collections;
16 import java.util.List;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
21 * The {@link Tr064RootConfiguration} class contains fields mapping thing configuration parameters.
23 * @author Jan N. Klug - Initial contribution
26 public class Tr064RootConfiguration extends Tr064BaseThingConfiguration {
27 public String host = "";
28 public String user = "dslf-config";
29 public String password = "";
31 /* following parameters only available in fritzbox thing */
32 public List<String> tamIndices = Collections.emptyList();
33 public List<String> callDeflectionIndices = Collections.emptyList();
34 public List<String> missedCallDays = Collections.emptyList();
35 public List<String> rejectedCallDays = Collections.emptyList();
36 public List<String> inboundCallDays = Collections.emptyList();
37 public List<String> outboundCallDays = Collections.emptyList();
38 public int phonebookInterval = 0;
40 public boolean isValid() {
41 return !host.isEmpty() && !user.isEmpty() && !password.isEmpty();