/*
 * Copyright (c) 2010-2026 Contributors to the openHAB project
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package org.openhab.binding.linky.internal.dto;

import java.time.LocalDateTime;

/**
 * The {@link IntervalReading} holds informations for the energy consumption of a period
 *
 * @author Gaël L'hopital - Initial contribution
 * @author Laurent Arnal - Rewrite addon to use official dataconect API
 */

public class IntervalReading {
    public Double value = 0.0;
    public IndexInfo[] indexInfo;
    public LocalDateTime date;

    public void initIndexInfo() {
        indexInfo = new IndexInfo[2];
        indexInfo[0] = new IndexInfo();
        indexInfo[1] = new IndexInfo();

        indexInfo[0].label = new String[10];
        indexInfo[0].value = new double[10];
        indexInfo[1].label = new String[4];
        indexInfo[1].value = new double[4];
    }
}
