removePresetTour static method

XmlDocumentFragment removePresetTour(
  1. String profileToken, {
  2. required PresetTour presetTour,
})

XML for the removePresetTour, requires a profileToken and presetTour

Implementation

static XmlDocumentFragment removePresetTour(String profileToken,
    {required PresetTour presetTour}) {
  Transport.builder.element('RemovePresetTour', nest: () {
    Transport.builder.namespace(Xmlns.tptz);

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

    presetTour.referenceToken.buildXml(
      Transport.builder,
      tag: 'PresetTourToken',
    );
  });

  return Transport.builder.buildFragment();
}