Webshops refactoring + checkstyle

This commit is contained in:
Leonie Eitze
2023-06-27 02:56:28 +02:00
parent 22ee3f3d34
commit 463932f8e9
24 changed files with 168 additions and 208 deletions

View File

@@ -8,6 +8,7 @@ import com.jayway.jsonpath.PathNotFoundException;
import com.jayway.jsonpath.ReadContext;
import de.rwu.easydrop.api.dto.ProductDTO;
import de.rwu.easydrop.model.Webshop;
/**
* Interface to an eBay data source.
@@ -18,7 +19,7 @@ public final class EbayItemDataSource extends AbstractDataSource {
/**
* Name of this data source.
*/
private static final String DATA_ORIGIN = "eBay";
private static final Webshop DATA_ORIGIN = Webshop.eBay;
/**
* Base URL to the eBay data source.
*/
@@ -77,7 +78,7 @@ public final class EbayItemDataSource extends AbstractDataSource {
}
@Override
protected String getDataOrigin() {
protected Webshop getDataOrigin() {
return DATA_ORIGIN;
}