Class ManageBuyOfferOperation.Builder
Inheritance
System.Object
ManageBuyOfferOperation.Builder
Namespace: System.Dynamic.ExpandoObject
Assembly: stellar-dotnet-sdk.dll
Syntax
public class Builder : object
Constructors
Builder(Asset, Asset, String, String)
Creates a new ManageBuyOffer builder. If you want to update existing offer use SetOfferId(Int64).
Declaration
public Builder(Asset selling, Asset buying, string amount, string price)
Parameters
Type | Name | Description |
---|---|---|
Asset | selling | The asset being sold in this operation |
Asset | buying | The asset being bought in this operation |
System.String | amount | |
System.String | price | Price of 1 unit of buying in terms of selling. |
Builder(ManageBuyOfferOp)
Construct a new ManageBuyOffer builder from a ManageBuyOfferOp XDR.
Declaration
public Builder(ManageBuyOfferOp op)
Parameters
Type | Name | Description |
---|---|---|
stellar_dotnet_sdk.xdr.ManageBuyOfferOp | op | stellar_dotnet_sdk.xdr.ManageBuyOfferOp |
Methods
Build()
Builds an operation
Declaration
public ManageBuyOfferOperation Build()
Returns
ManageBuyOfferOperation
|
SetOfferId(Int64)
Declaration
public ManageBuyOfferOperation.Builder SetOfferId(long offerId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | offerId |
Returns
ManageBuyOfferOperation.Builder
|
SetSourceAccount(KeyPair)
Sets the source account for this operation.
Declaration
public ManageBuyOfferOperation.Builder SetSourceAccount(KeyPair sourceAccount)
Parameters
Type | Name | Description |
---|---|---|
KeyPair | sourceAccount | The operation's source account. |
Returns
ManageBuyOfferOperation.Builder
Builder object so you can chain methods. |