relativeMove static method

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

XML for the relativeMove, requires a profileToken and PtzVector

Implementation

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

    ReferenceToken(profileToken).buildXml(
      builder,
      namespace: Xmlns.tptz,
    );

    translation.buildXml(
      builder,
      tag: 'Translation',
      namespace: Xmlns.tptz,
    );

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

  return builder.buildFragment();
}