DigitalGoodsListing(JSONObject attachmentData) throws JSONException { super(attachmentData); this.name = (String) attachmentData.get("name"); this.description = (String) attachmentData.get("description"); this.tags = (String) attachmentData.get("tags"); this.quantity = ((Long) attachmentData.get("quantity")).intValue(); 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")); }
DigitalGoodsRefund(JSONObject attachmentData) throws JSONException { super(attachmentData); this.purchaseId = Convert.parseUnsignedLong((String)attachmentData.get("purchase")); this.refundNQT = Convert.parseLong(attachmentData.get("refundNQT")); }
MessagingAliasSell(JSONObject attachmentData) throws JSONException { super(attachmentData); this.aliasName = Convert.nullToEmpty((String) attachmentData.get("alias")); this.priceNQT = Convert.parseLong(attachmentData.get("priceNQT")); }
DigitalGoodsPriceChange(JSONObject attachmentData) throws JSONException { super(attachmentData); this.goodsId = Convert.parseUnsignedLong((String)attachmentData.get("goods")); this.priceNQT = Convert.parseLong(attachmentData.get("priceNQT")); }
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(); }
ColoredCoinsAssetIssuance(JSONObject attachmentData) throws JSONException { super(attachmentData); this.name = (String) attachmentData.get("name"); this.description = Convert.nullToEmpty((String) attachmentData.get("description")); this.quantityQNT = Convert.parseLong(attachmentData.get("quantityQNT")); this.decimals = ((Long) attachmentData.get("decimals")).byteValue(); }
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; }
short deadline = ((Long) transactionData.getLong("deadline")).shortValue(); byte[] senderPublicKey = Convert.parseHexString((String) transactionData.get("senderPublicKey")); long amountNQT = Convert.parseLong(transactionData.get("amountNQT")); long feeNQT = Convert.parseLong(transactionData.get("feeNQT")); String referencedTransactionFullHash = (transactionData.has("referencedTransactionFullHash"))?(String) transactionData.get("referencedTransactionFullHash"):""; byte[] signature = Convert.parseHexString((String) transactionData.get("signature"));