package cz.senslog.connector.model.v2;

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

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

/**
 * The class {@code SenslogV2Model} represents a model which contains
 * transfer data for Senslog V2 pusher.
 *
 * @author Lukas Cerny
 * @version 1.0
 * @since 1.0
 */
public class SenslogV2Model extends AbstractModel {

    /** List of observations */
    private final List<Observation> observations;

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

    public List<Observation> getObservations() {
        return observations;
    }
}
