Rename onFiatPaymentStarted to onPaymentStarted

This commit is contained in:
chimp1984 2020-09-25 21:33:53 -05:00
parent 612ecd3a6a
commit a002fb33a5
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3
7 changed files with 12 additions and 12 deletions

View File

@ -84,9 +84,9 @@ public abstract class BuyerTrade extends Trade {
btcWalletService);
}
public void onFiatPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
public void onPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
checkArgument(tradeProtocol instanceof BuyerProtocol, "Check failed: tradeProtocol instanceof BuyerProtocol");
((BuyerProtocol) tradeProtocol).onFiatPaymentStarted(resultHandler, errorMessageHandler);
((BuyerProtocol) tradeProtocol).onPaymentStarted(resultHandler, errorMessageHandler);
}
@Override

View File

@ -119,10 +119,10 @@ public class BuyerAsMakerProtocol extends BuyerProtocol implements MakerProtocol
// User interaction
///////////////////////////////////////////////////////////////////////////////////////////
// We keep the handler here in as well to make it more transparent which messages we expect
// We keep the handler here in as well to make it more transparent which events we expect
@Override
public void onFiatPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
super.onFiatPaymentStarted(resultHandler, errorMessageHandler);
public void onPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
super.onPaymentStarted(resultHandler, errorMessageHandler);
}

View File

@ -133,10 +133,10 @@ public class BuyerAsTakerProtocol extends BuyerProtocol implements TakerProtocol
// User interaction
///////////////////////////////////////////////////////////////////////////////////////////
// We keep the handler here in as well to make it more transparent which messages we expect
// We keep the handler here in as well to make it more transparent which events we expect
@Override
public void onFiatPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
super.onFiatPaymentStarted(resultHandler, errorMessageHandler);
public void onPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
super.onPaymentStarted(resultHandler, errorMessageHandler);
}

View File

@ -126,7 +126,7 @@ public abstract class BuyerProtocol extends MediationProtocol {
// User interaction
///////////////////////////////////////////////////////////////////////////////////////////
public void onFiatPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
public void onPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
BuyerEvent event = BuyerEvent.PAYMENT_SENT;
expect(phase(Trade.Phase.DEPOSIT_CONFIRMED)
.with(event)

View File

@ -130,7 +130,7 @@ public class SellerAsMakerProtocol extends SellerProtocol implements MakerProtoc
// User interaction
///////////////////////////////////////////////////////////////////////////////////////////
// We keep the handler here in as well to make it more transparent which messages we expect
// We keep the handler here in as well to make it more transparent which events we expect
@Override
public void onPaymentReceived(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
super.onPaymentReceived(resultHandler, errorMessageHandler);

View File

@ -127,7 +127,7 @@ public class SellerAsTakerProtocol extends SellerProtocol implements TakerProtoc
// User interaction
///////////////////////////////////////////////////////////////////////////////////////////
// We keep the handler here in as well to make it more transparent which messages we expect
// We keep the handler here in as well to make it more transparent which events we expect
@Override
public void onPaymentReceived(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
super.onPaymentReceived(resultHandler, errorMessageHandler);

View File

@ -186,7 +186,7 @@ public class PendingTradesDataModel extends ActivatableDataModel {
Trade trade = getTrade();
checkNotNull(trade, "trade must not be null");
checkArgument(trade instanceof BuyerTrade, "Check failed: trade instanceof BuyerTrade");
((BuyerTrade) trade).onFiatPaymentStarted(resultHandler, errorMessageHandler);
((BuyerTrade) trade).onPaymentStarted(resultHandler, errorMessageHandler);
}
public void onFiatPaymentReceived(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {