Package nxt
Class PrunableMessage
- java.lang.Object
-
- nxt.PrunableMessage
-
public final class PrunableMessage extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]decrypt(byte[] sharedKey)byte[]decrypt(java.lang.String secretPhrase)booleanencryptedMessageIsText()static DbIterator<PrunableMessage>getAll(int from, int to)intgetBlockTimestamp()static intgetCount()EncryptedDatagetEncryptedData()intgetHeight()longgetId()byte[]getMessage()static PrunableMessagegetPrunableMessage(long transactionId)static DbIterator<PrunableMessage>getPrunableMessages(long accountId, int from, int to)static DbIterator<PrunableMessage>getPrunableMessages(long accountId, long otherAccountId, int from, int to)longgetRecipientId()longgetSenderId()intgetTransactionTimestamp()booleanisCompressed()booleanmessageIsText()
-
-
-
Method Detail
-
getCount
public static int getCount()
-
getAll
public static DbIterator<PrunableMessage> getAll(int from, int to)
-
getPrunableMessage
public static PrunableMessage getPrunableMessage(long transactionId)
-
getPrunableMessages
public static DbIterator<PrunableMessage> getPrunableMessages(long accountId, int from, int to)
-
getPrunableMessages
public static DbIterator<PrunableMessage> getPrunableMessages(long accountId, long otherAccountId, int from, int to)
-
getMessage
public byte[] getMessage()
-
getEncryptedData
public EncryptedData getEncryptedData()
-
messageIsText
public boolean messageIsText()
-
encryptedMessageIsText
public boolean encryptedMessageIsText()
-
isCompressed
public boolean isCompressed()
-
getId
public long getId()
-
getSenderId
public long getSenderId()
-
getRecipientId
public long getRecipientId()
-
getTransactionTimestamp
public int getTransactionTimestamp()
-
getBlockTimestamp
public int getBlockTimestamp()
-
getHeight
public int getHeight()
-
decrypt
public byte[] decrypt(java.lang.String secretPhrase)
-
decrypt
public byte[] decrypt(byte[] sharedKey)
-
-