Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'takeoffer' api method #4667

Closed
wants to merge 12 commits into from
7 changes: 2 additions & 5 deletions core/src/main/java/bisq/core/api/CoreTradesService.java
Expand Up @@ -18,7 +18,6 @@
package bisq.core.api;

import bisq.core.offer.Offer;
import bisq.core.offer.OfferBookService;
import bisq.core.offer.takeoffer.TakeOfferModel;
import bisq.core.trade.Trade;
import bisq.core.trade.TradeManager;
Expand All @@ -36,16 +35,14 @@
@Slf4j
class CoreTradesService {

private final OfferBookService offerBookService;
private final TakeOfferModel takeOfferModel;
private final TradeManager tradeManager;
private final User user;

@Inject
public CoreTradesService(OfferBookService offerBookService,
TakeOfferModel takeOfferModel, TradeManager tradeManager,
public CoreTradesService(TakeOfferModel takeOfferModel,
TradeManager tradeManager,
User user) {
this.offerBookService = offerBookService;
this.takeOfferModel = takeOfferModel;
this.tradeManager = tradeManager;
this.user = user;
Expand Down
3 changes: 0 additions & 3 deletions core/src/main/java/bisq/core/api/model/OfferInfo.java
Expand Up @@ -159,9 +159,6 @@ public static class OfferInfoBuilder {
private long date;
private String state;

public OfferInfoBuilder() {
}

public OfferInfoBuilder withId(String id) {
this.id = id;
return this;
Expand Down
5 changes: 1 addition & 4 deletions core/src/main/java/bisq/core/api/model/TradeInfo.java
Expand Up @@ -24,7 +24,7 @@
import lombok.EqualsAndHashCode;
import lombok.Getter;

import static bisq.core.api.model.OfferInfo.*;
import static bisq.core.api.model.OfferInfo.toOfferInfo;

@EqualsAndHashCode
@Getter
Expand Down Expand Up @@ -126,9 +126,6 @@ public static class TradeInfoBuilder {
private boolean isPayoutPublished;
private boolean isWithdrawn;

public TradeInfoBuilder() {
}

public TradeInfoBuilder withOffer(OfferInfo offer) {
this.offer = offer;
return this;
Expand Down