stop static method
XML for the stop, requires a profileToken
and optionally panTilt
and/or zoom
Implementation
static XmlDocumentFragment stop(String profileToken,
{bool panTilt = false, bool zoom = false}) {
Transport.builder.element('Stop', nest: () {
Transport.builder.namespace(Xmlns.tptz); //tptz
ReferenceToken(profileToken).buildXml(Transport.builder);
Transport.builder.element('PanTilt', nest: () {
Transport.builder.namespace(Xmlns.tt);
Transport.builder.text('$panTilt');
});
Transport.builder.element('Zoom', nest: () {
Transport.builder.namespace(Xmlns.tt);
Transport.builder.text('$zoom');
});
});
return Transport.builder.buildFragment();
}