package com.hepl.tunefortwo.service.impl;

import java.nio.file.Path;
import java.nio.file.Paths;

import org.springframework.stereotype.Component;

import com.hepl.tunefortwo.config.properties.StorageProperties;
import com.hepl.tunefortwo.service.FilePathService;
import com.itextpdf.text.pdf.PdfStructTreeController.returnType;
@Component
public class ClipFileServiceImpl implements FilePathService {
    private final Path clipLocation;

    public ClipFileServiceImpl(StorageProperties properties) {
        this.clipLocation = Paths.get(properties.getLocation()).resolve(properties.getClip());
    }

    @Override
    public Path getDestinationPath() {
     return this.clipLocation;
    }

}
