MessagingAccountInfo(ByteBuffer buffer, byte transactionVersion) throws NxtException.NotValidException { super(buffer, transactionVersion); this.name = Convert.readString(buffer, buffer.get(), Constants.MAX_ACCOUNT_NAME_LENGTH); this.description = Convert.readString(buffer, buffer.getShort(), Constants.MAX_ACCOUNT_DESCRIPTION_LENGTH); }
MessagingAliasBuy(ByteBuffer buffer, byte transactionVersion) throws NxtException.NotValidException { super(buffer, transactionVersion); this.aliasName = Convert.readString(buffer, buffer.get(), Constants.MAX_ALIAS_LENGTH); }
MessagingAliasAssignment(ByteBuffer buffer, byte transactionVersion) throws NxtException.NotValidException { super(buffer, transactionVersion); aliasName = Convert.readString(buffer, buffer.get(), Constants.MAX_ALIAS_LENGTH).trim(); aliasURI = Convert.readString(buffer, buffer.getShort(), Constants.MAX_ALIAS_URI_LENGTH).trim(); }
ColoredCoinsAssetIssuance(ByteBuffer buffer, byte transactionVersion) throws NxtException.NotValidException { super(buffer, transactionVersion); this.name = Convert.readString(buffer, buffer.get(), Constants.MAX_ASSET_NAME_LENGTH); this.description = Convert.readString(buffer, buffer.getShort(), Constants.MAX_ASSET_DESCRIPTION_LENGTH); this.quantityQNT = buffer.getLong(); this.decimals = buffer.get(); }
DigitalGoodsListing(ByteBuffer buffer, byte transactionVersion) throws NxtException.NotValidException { super(buffer, transactionVersion); this.name = Convert.readString(buffer, buffer.getShort(), Constants.MAX_DGS_LISTING_NAME_LENGTH); this.description = Convert.readString(buffer, buffer.getShort(), Constants.MAX_DGS_LISTING_DESCRIPTION_LENGTH); this.tags = Convert.readString(buffer, buffer.getShort(), Constants.MAX_DGS_LISTING_TAGS_LENGTH); this.quantity = buffer.getInt(); this.priceNQT = buffer.getLong(); }
MessagingAliasSell(ByteBuffer buffer, byte transactionVersion) throws NxtException.NotValidException { super(buffer, transactionVersion); this.aliasName = Convert.readString(buffer, buffer.get(), Constants.MAX_ALIAS_LENGTH); this.priceNQT = buffer.getLong(); }
MessagingHubAnnouncement(ByteBuffer buffer, byte transactionVersion) throws NxtException.NotValidException { super(buffer, transactionVersion); this.minFeePerByteNQT = buffer.getLong(); int numberOfUris = buffer.get(); if (numberOfUris > Constants.MAX_HUB_ANNOUNCEMENT_URIS) { throw new NxtException.NotValidException("Invalid number of URIs: " + numberOfUris); } this.uris = new String[numberOfUris]; for (int i = 0; i < uris.length; i++) { uris[i] = Convert.readString(buffer, buffer.getShort(), Constants.MAX_HUB_ANNOUNCEMENT_URI_LENGTH); } }
ColoredCoinsAssetTransfer(ByteBuffer buffer, byte transactionVersion) throws NxtException.NotValidException { super(buffer, transactionVersion); this.assetId = buffer.getLong(); this.quantityQNT = buffer.getLong(); this.comment = getVersion() == 0 ? Convert.readString(buffer, buffer.getShort(), Constants.MAX_ASSET_TRANSFER_COMMENT_LENGTH) : null; }
MessagingPollCreation(ByteBuffer buffer, byte transactionVersion) throws NxtException.NotValidException { super(buffer, transactionVersion); this.pollName = Convert.readString(buffer, buffer.getShort(), Constants.MAX_POLL_NAME_LENGTH); this.pollDescription = Convert.readString(buffer, buffer.getShort(), Constants.MAX_POLL_DESCRIPTION_LENGTH); int numberOfOptions = buffer.get(); if (numberOfOptions > Constants.MAX_POLL_OPTION_COUNT) { throw new NxtException.NotValidException("Invalid number of poll options: " + numberOfOptions); } this.pollOptions = new String[numberOfOptions]; for (int i = 0; i < numberOfOptions; i++) { pollOptions[i] = Convert.readString(buffer, buffer.getShort(), Constants.MAX_POLL_OPTION_LENGTH); } this.minNumberOfOptions = buffer.get(); this.maxNumberOfOptions = buffer.get(); this.optionsAreBinary = buffer.get() != 0; }