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

@@ -3,6 +3,8 @@ package de.rwu.easydrop.api.client;
import java.net.MalformedURLException;
import java.net.URL;
import de.rwu.easydrop.model.Webshop;
/**
* Sends a buy request to the eBay API.
*
@@ -12,7 +14,7 @@ public final class EbayPurchaser extends AbstractPurchaser {
/**
* Name of this data source.
*/
private static final String DATA_TARGET = "eBay";
private static final Webshop DATA_TARGET = Webshop.eBay;
/**
* Base URL to the eBay Purchase API.
*/
@@ -46,7 +48,7 @@ public final class EbayPurchaser extends AbstractPurchaser {
}
@Override
protected String getDataTarget() {
protected Webshop getDataTarget() {
return DATA_TARGET;
}
}