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.ecobee.internal.function;
15 import java.text.DateFormat;
16 import java.text.SimpleDateFormat;
17 import java.util.HashMap;
20 import org.eclipse.jdt.annotation.NonNullByDefault;
22 import com.google.gson.annotations.Expose;
25 * The {@link AbstractFunction} defines the base class used by all
26 * thermostat functions.
28 * @author Mark Hilbush - Initial contribution
31 public abstract class AbstractFunction {
33 @Expose(serialize = false)
34 protected static final DateFormat YMD = new SimpleDateFormat("yyyy-MM-dd");
36 @Expose(serialize = false)
37 protected static final DateFormat HMS = new SimpleDateFormat("HH:mm:ss");
41 public Map<String, Object> params;
43 public AbstractFunction(String type) {
45 this.params = new HashMap<>();