absoluteMove static method

XmlDocumentFragment absoluteMove(
  1. String profileToken,
  2. PtzVector position,
  3. PtzSpeed? speed
)

Implementation

static XmlDocumentFragment absoluteMove(
    String profileToken, PtzVector position, PtzSpeed? speed) {
  Transport.builder.element('AbsoluteMove', nest: () {
    Transport.builder.namespace(Xmlns.tptz); //tptz

    ReferenceToken(profileToken).buildXml(Transport.builder);

    position.buildXml(
      Transport.builder,
      tag: 'Position',
      namespace: Xmlns.tptz,
    );

    speed?.buildXml(
      Transport.builder,
      tag: 'Speed',
      namespace: Xmlns.tptz,
    );
  });

  return Transport.builder.buildFragment();
}