getRecordingSearchResults static method

XmlDocumentFragment getRecordingSearchResults(
  1. String searchToken, {
  2. int? minResults,
  3. int? maxResults,
  4. String? waitTime,
})

Implementation

static XmlDocumentFragment getRecordingSearchResults(
  String searchToken, {
  int? minResults,
  int? maxResults,
  String? waitTime,
}) {
  Transport.builder.element('GetRecordingSearchResults', nest: () {
    Transport.builder.namespace(Xmlns.tse);

    Transport.builder.element('SearchToken', nest: () {
      Transport.builder.text(searchToken);
    });

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

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

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

  return Transport.builder.buildFragment();
}