public Long getEcBlockId() { return Convert.parseUnsignedLong(ecBlockId); }
DigitalGoodsFeedback(JSONObject attachmentData) throws JSONException { super(attachmentData); this.purchaseId = Convert.parseUnsignedLong((String)attachmentData.get("purchase")); }
private ColoredCoinsOrderCancellation(JSONObject attachmentData) throws JSONException { super(attachmentData); this.orderId = Convert.parseUnsignedLong((String) attachmentData.get("order")); }
DigitalGoodsDelisting(JSONObject attachmentData) throws JSONException { super(attachmentData); this.goodsId = Convert.parseUnsignedLong((String)attachmentData.get("goods")); }
DigitalGoodsQuantityChange(JSONObject attachmentData) throws JSONException { super(attachmentData); this.goodsId = Convert.parseUnsignedLong((String)attachmentData.get("goods")); this.deltaQuantity = ((Long)attachmentData.get("deltaQuantity")).intValue(); }
DigitalGoodsRefund(JSONObject attachmentData) throws JSONException { super(attachmentData); this.purchaseId = Convert.parseUnsignedLong((String)attachmentData.get("purchase")); this.refundNQT = Convert.parseLong(attachmentData.get("refundNQT")); }
DigitalGoodsPurchase(JSONObject attachmentData) throws JSONException { super(attachmentData); this.goodsId = Convert.parseUnsignedLong((String)attachmentData.get("goods")); this.quantity = ((Long)attachmentData.get("quantity")).intValue(); this.priceNQT = Convert.parseLong(attachmentData.get("priceNQT")); this.deliveryDeadlineTimestamp = ((Long)attachmentData.get("deliveryDeadlineTimestamp")).intValue(); }
MessagingVoteCasting(JSONObject attachmentData) throws JSONException { super(attachmentData); this.pollId = Convert.parseUnsignedLong((String)attachmentData.get("pollId")); JSONArray vote = (JSONArray)attachmentData.get("vote"); this.pollVote = new byte[vote.length()]; for (int i = 0; i < pollVote.length; i++) { pollVote[i] = ((Long) vote.get(i)).byteValue(); } }
DigitalGoodsPriceChange(JSONObject attachmentData) throws JSONException { super(attachmentData); this.goodsId = Convert.parseUnsignedLong((String)attachmentData.get("goods")); this.priceNQT = Convert.parseLong(attachmentData.get("priceNQT")); }
private ColoredCoinsOrderPlacement(JSONObject attachmentData) throws JSONException { super(attachmentData); this.assetId = Convert.parseUnsignedLong((String) attachmentData.get("asset")); this.quantityQNT = Convert.parseLong(attachmentData.get("quantityQNT")); this.priceNQT = Convert.parseLong(attachmentData.get("priceNQT")); }
public static long parseAccountId(CoinType type, String account) { checkArgument(type instanceof NxtFamily, "Unexpected type for an account"); if (account == null) { return 0; } account = account.toUpperCase(); if (account.startsWith(type.getAddressPrefix())) { return Crypto.rsDecode(account.substring(type.getAddressPrefix().length())); } else { // Account is numeric return parseUnsignedLong(account); } }
DigitalGoodsDelivery(JSONObject attachmentData) throws JSONException { super(attachmentData); this.purchaseId = Convert.parseUnsignedLong((String)attachmentData.get("purchase")); this.goods = new EncryptedData(Convert.parseHexString((String)attachmentData.get("goodsData")), Convert.parseHexString((String)attachmentData.get("goodsNonce"))); this.discountNQT = Convert.parseLong(attachmentData.get("discountNQT")); this.goodsIsText = Boolean.TRUE.equals(attachmentData.get("goodsIsText")); }
ColoredCoinsAssetTransfer(JSONObject attachmentData) throws JSONException { super(attachmentData); this.assetId = Convert.parseUnsignedLong((String) attachmentData.get("asset")); this.quantityQNT = Convert.parseLong(attachmentData.get("quantityQNT")); this.comment = getVersion() == 0 ? Convert.nullToEmpty((String) attachmentData.get("comment")) : null; }
long recipientId = Convert.parseUnsignedLong((String) transactionData.get("recipient")); builder.recipientId(recipientId); if (transactionData.has("ecBlockHeight")) { builder.ecBlockHeight(((Long) transactionData.getLong("ecBlockHeight")).intValue()); builder.ecBlockId(Convert.parseUnsignedLong(transactionData.getString("ecBlockId")));