package cz.senslog.connector.model.converter;

import cz.senslog.connector.model.api.Converter;
import cz.senslog.connector.model.demo.DemoModel;
import cz.senslog.connector.model.logger.LoggerModel;

public class DemoModelLoggerModelConverter implements Converter<DemoModel, LoggerModel> {

    @Override
    public LoggerModel convert(DemoModel model) {
        return new LoggerModel(model.getMessage(), model.getFrom(), model.getTo());
    }
}
