コード例 #1
0
ファイル: PaymentSession.java プロジェクト: pavel4n/isracoinj
 /** This should always be called before attempting to call sendPayment. */
 public boolean isExpired() {
   return paymentDetails.hasExpires()
       && System.currentTimeMillis() / 1000L > paymentDetails.getExpires();
 }
コード例 #2
0
 /** Returns the expires time of the payment request, or null if none. */
 @Nullable
 public Date getExpires() {
   if (paymentDetails.hasExpires()) return new Date(paymentDetails.getExpires() * 1000);
   else return null;
 }