Esempio n. 1
0
        public RecordingCollectionResult GetRecordingsList(string folderId,
                                                           int startIndex, int limit,
                                                           string propertySortBy, SortOrder order,
                                                           bool excludeMp4 = false,
                                                           string scoId    = null)
        {
            //act: "list-recordings"
            StatusInfo status;

            string parameters =
                string.Format(CommandParams.FolderId, folderId)
                .AppendPagingIfNeeded(startIndex, limit)
                .AppendSortingIfNeeded(propertySortBy, order);

            if (excludeMp4)
            {
                parameters += "&filter-out-icon=mp4-archive";
            }

            if (!string.IsNullOrEmpty(scoId))
            {
                parameters += $"&filter-sco-id={scoId}";
            }

            var doc = this.requestProcessor.Process(Commands.Recordings.List, parameters, out status);

            return(ResponseIsOk(doc, status)
                ? new RecordingCollectionResult(status, RecordingCollectionParser.Parse(doc))
                : new RecordingCollectionResult(status));
        }
Esempio n. 2
0
        public RecordingCollectionResult GetSeminarSessionRecordingsList(string seminarId, string seminarSessionId)
        {
            //act: "list-recordings"
            StatusInfo status;

            var doc = this.requestProcessor.Process(Commands.Recordings.List,
                                                    string.Format(CommandParams.FolderIdAndSeminarSessionId, seminarId, seminarSessionId), out status);

            return(ResponseIsOk(doc, status)
                ? new RecordingCollectionResult(status, RecordingCollectionParser.Parse(doc))
                : new RecordingCollectionResult(status));
        }