PathPaymentStrictSendOperation constructor

PathPaymentStrictSendOperation(
  1. Asset sendAsset,
  2. String sendAmount,
  3. MuxedAccount destination,
  4. Asset destAsset,
  5. String destMin,
  6. List<Asset> path
)

Implementation

PathPaymentStrictSendOperation(
    Asset sendAsset,
    String sendAmount,
    MuxedAccount destination,
    Asset destAsset,
    String destMin,
    List<Asset> path) {
  this._sendAsset = checkNotNull(sendAsset, "sendAsset cannot be null");
  this._sendAmount = checkNotNull(sendAmount, "sendAmount cannot be null");
  this._destination = checkNotNull(destination, "destination cannot be null");
  this._destAsset = checkNotNull(destAsset, "destAsset cannot be null");
  this._destMin = checkNotNull(destMin, "destMin cannot be null");
  if (path == null) {
    this._path = List<Asset>(0);
  } else {
    checkArgument(
        path.length <= 5, "The maximum number of assets in the path is 5");
    this._path = path;
  }
}