gotoHomePosition static method
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();
}