getSnapshotUri static method

XmlDocumentFragment getSnapshotUri(
  1. String profileToken, {
  2. StreamSetup? streamSetup,
})

XML for the getSnapshotUri, requires a profileToken

Implementation

static XmlDocumentFragment getSnapshotUri(String profileToken,
    {StreamSetup? streamSetup}) {
  Transport.builder.element('GetSnapshotUri', nest: () {
    Transport.builder.namespace(Xmlns.trt);
    Transport.builder.element('ProfileToken', nest: () {
      Transport.builder.text(profileToken);
    });
  });

  return Transport.builder.buildFragment();
}