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