public ColoredCoinsAssetIssuance(String name, String description, long quantityQNT, byte decimals) { this.name = name; this.description = Convert.nullToEmpty(description); this.quantityQNT = quantityQNT; this.decimals = decimals; }
MessagingAccountInfo(JSONObject attachmentData) throws JSONException { super(attachmentData); this.name = Convert.nullToEmpty((String) attachmentData.get("name")); this.description = Convert.nullToEmpty((String) attachmentData.get("description")); }
MessagingAliasBuy(JSONObject attachmentData) throws JSONException { super(attachmentData); this.aliasName = Convert.nullToEmpty((String) attachmentData.get("alias")); }
MessagingAliasAssignment(JSONObject attachmentData) throws JSONException { super(attachmentData); aliasName = (Convert.nullToEmpty((String) attachmentData.get("alias"))).trim(); aliasURI = (Convert.nullToEmpty((String) attachmentData.get("uri"))).trim(); }
MessagingAliasSell(JSONObject attachmentData) throws JSONException { super(attachmentData); this.aliasName = Convert.nullToEmpty((String) attachmentData.get("alias")); this.priceNQT = Convert.parseLong(attachmentData.get("priceNQT")); }
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(); }
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; }