コード例 #1
0
 void onFiatPaymentStarted(ResultHandler resultHandler, ErrorMessageHandler errorMessageHandler) {
   checkNotNull(trade, "trade must not be null");
   checkArgument(trade instanceof BuyerTrade, "Check failed: trade instanceof BuyerTrade");
   checkArgument(
       trade.getDisputeState() == Trade.DisputeState.NONE,
       "Check failed: trade.getDisputeState() == Trade.DisputeState.NONE");
   ((BuyerTrade) trade).onFiatPaymentStarted(resultHandler, errorMessageHandler);
 }
コード例 #2
0
 void onFiatPaymentReceived() {
   checkNotNull(trade, "trade must not be null");
   if (trade instanceof SellerTrade && trade.getDisputeState() == Trade.DisputeState.NONE)
     ((SellerTrade) trade).onFiatPaymentReceived();
 }