findRecordings static method

XmlDocumentFragment findRecordings({
  1. SearchScope? searchScope,
  2. int? maxMatches,
  3. required int keepAliveTime,
})

XML for the findRecordings

Implementation

static XmlDocumentFragment findRecordings({
  SearchScope? searchScope,
  int? maxMatches,
  required int keepAliveTime,
}) {
  Transport.builder.element('FindRecordings', nest: () {
    Transport.builder.namespace(Xmlns.tse);

    if (searchScope != null) {
      Transport.builder.element('RecordingToken', nest: () {
        searchScope.toXml();
      });
    }

    if (maxMatches != null) {
      Transport.builder.element('MaxMatches', nest: () {
        Transport.builder.text(maxMatches);
      });
    }

    Transport.builder.element('KeepAliveTime', nest: () {
      Transport.builder.text(keepAliveTime);
    });
  });

  return Transport.builder.buildFragment();
}