absoluteMove static method

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

Implementation

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

    ReferenceToken(profileToken).buildXml(builder);

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

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

  return builder.buildFragment();
}