Webshops refactoring + checkstyle
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user