package com.benjaminsproule.spring;

import com.benjaminsproule.dao.TrackDao;
import com.benjaminsproule.service.DropboxService;
import com.benjaminsproule.service.OneDriveService;
import com.benjaminsproule.service.TrackService;
import lombok.Getter;

import java.sql.Connection;

@Getter
public class TrackConfig {

    private final TrackDao trackDao;
    private final TrackService trackService;

    public TrackConfig(Connection connection,
                       DropboxService dropboxService,
                       OneDriveService oneDriveService) {

        this.trackDao = new TrackDao(connection);
        this.trackService = new TrackService(dropboxService,
            oneDriveService,
            trackDao);
    }
}
