public static class ManageSellOfferOperation.Builder
extends java.lang.Object
setOfferId(long)
.ManageSellOfferOperation
Constructor and Description |
---|
Builder(Asset selling,
Asset buying,
java.lang.String amount,
java.lang.String price)
Creates a new ManageSellOffer builder.
|
Modifier and Type | Method and Description |
---|---|
ManageSellOfferOperation |
build()
Builds an operation
|
ManageSellOfferOperation.Builder |
setOfferId(long offerId)
Sets offer ID.
|
ManageSellOfferOperation.Builder |
setSourceAccount(java.lang.String sourceAccount)
Sets the source account for this operation.
|
public Builder(Asset selling, Asset buying, java.lang.String amount, java.lang.String price)
setOfferId(long)
.selling
- The asset being sold in this operationbuying
- The asset being bought in this operationamount
- Amount of selling being sold.price
- Price of 1 unit of selling in terms of buying.java.lang.ArithmeticException
- when amount has more than 7 decimal places.public ManageSellOfferOperation.Builder setOfferId(long offerId)
0
creates a new offer. Set to existing offer ID to change it.offerId
- public ManageSellOfferOperation.Builder setSourceAccount(java.lang.String sourceAccount)
sourceAccount
- The operation's source account.public ManageSellOfferOperation build()