relativeMove static method

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

XML for the relativeMove, requires a profileToken and PtzVector

Implementation

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

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

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

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

  return Transport.builder.buildFragment();
}