relativeMove static method
XmlDocumentFragment
relativeMove(})
XML for the relativeMove, requires a profileToken
and PtzVector
Implementation
static XmlDocumentFragment relativeMove(
String profileToken, {
required PtzVector translation,
PtzSpeed? speed,
}) {
builder.element('RelativeMove', nest: () {
builder.namespace(Xmlns.tptz); //tptz
ReferenceToken(profileToken).buildXml(
builder,
namespace: Xmlns.tptz,
);
translation.buildXml(
builder,
tag: 'Translation',
namespace: Xmlns.tptz,
);
speed?.buildXml(
builder,
tag: 'Speed',
namespace: Xmlns.tptz,
);
});
return builder.buildFragment();
}