// Copyright (c) 2020 UWB & LESP.
// The UWB & LESP license this file to you under the MIT license.

package cz.senslog.connector.model.converter;

import cz.senslog.connector.model.api.Converter;
import cz.senslog.connector.model.fieldclimate.FieldClimateModel;
import cz.senslog.connector.model.v2.SenslogV2Model;

import java.util.Collections;

public class FieldClimateModelSenslogV2ModelConverter implements Converter<FieldClimateModel, SenslogV2Model> {

    @Override
    public SenslogV2Model convert(FieldClimateModel model) {
        return new SenslogV2Model(Collections.emptyList(), model.getFrom(), model.getTo());
    }
}
