gotoHomePosition static method

XmlDocumentFragment gotoHomePosition(
  1. String profileToken,
  2. PtzSpeed? speed
)

XML for the gotoHomePosition, requires a profileToken and optionally PtzSpeed

Implementation

static XmlDocumentFragment gotoHomePosition(
    String profileToken, PtzSpeed? speed) {
  Transport.builder.element('GotoHomePosition', nest: () {
    Transport.builder.namespace(Xmlns.tptz);

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

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

  return Transport.builder.buildFragment();
}