package cz.senslog.connector.model.azure;

import cz.senslog.connector.model.api.AbstractModel;

import java.time.LocalDateTime;
import java.time.OffsetDateTime;
import java.util.List;

/**
 * The class {@code AzureModel} represents a model which contains
 * transfer data from Azure IoT LoraWan.
 *
 * @author Lukas Cerny
 * @version 1.0
 * @since 1.0
 */
public class AzureModel extends AbstractModel {

    /** List of sensor data */
    private final List<SensorInfo> sensors;

    /**
     * Constructor of the class sets all attributes.
     * @param sensors - list of the sensors.
     * @param from - start of the time range.
     * @param to - end of the time range.
     */
    public AzureModel(List<SensorInfo> sensors, OffsetDateTime from, OffsetDateTime to) {
        super(from, to);
        this.sensors = sensors;
    }

    public List<SensorInfo> getSensors() {
        return sensors;
    }
}
