예제 #1
0
        public void ReloadRecordingGroups(RecordingGroupMode groupMode)
        {
            _model.RecordingGroups = new List<RecordingGroup>(Proxies.ControlService.GetAllRecordingGroups(_model.ChannelType, groupMode).Result);
            _model.RecordingsByGroup.Clear();

            int index = 0;
            _model.RecordingGroups.ForEach(g =>
            {
                if (g.SingleRecording != null)
                {
                    _model.RecordingsByGroup[index] = new List<RecordingSummary>() { g.SingleRecording };
                }
                index++;
            });
        }
예제 #2
0
        public void ReloadRecordingGroups(RecordingGroupMode groupMode)
        {
            _model.RecordingGroups = new List <RecordingGroup>(Proxies.ControlService.GetAllRecordingGroups(_model.ChannelType, groupMode).Result);
            _model.RecordingsByGroup.Clear();

            int index = 0;

            _model.RecordingGroups.ForEach(g =>
            {
                if (g.SingleRecording != null)
                {
                    _model.RecordingsByGroup[index] = new List <RecordingSummary>()
                    {
                        g.SingleRecording
                    };
                }
                index++;
            });
        }
예제 #3
0
 public void ReloadRecordingGroups(IControlService tvControlAgent, RecordingGroupMode groupMode)
 {
     _model.RecordingGroups = new List <RecordingGroup>(tvControlAgent.GetAllRecordingGroups(_model.ChannelType, groupMode));
     _model.RecordingsByGroup.Clear();
 }
예제 #4
0
 public void ReloadRecordingGroups(IControlService tvControlAgent, RecordingGroupMode groupMode)
 {
     _model.RecordingGroups = new List<RecordingGroup>(tvControlAgent.GetAllRecordingGroups(_model.ChannelType, groupMode));
     _model.RecordingsByGroup.Clear();
 }
예제 #5
0
 /// <summary>
 /// Constructs a RecordingGroup instance.
 /// </summary>
 /// <param name="recordingGroupMode">The recording group-mode.</param>
 public RecordingGroup(RecordingGroupMode recordingGroupMode)
 {
     this.RecordingGroupMode = recordingGroupMode;
 }
예제 #6
0
 public BackgroundWorkerArgs(ChannelType channelType, RecordingGroupMode recordingGroupMode, bool includeNonExisting)
 {
     _channelType = channelType;
     _recordingGroupMode = recordingGroupMode;
     _includeNonExisting = includeNonExisting;
 }
예제 #7
0
 /// <summary>
 /// Get all recording groups based on the recording group-mode.
 /// </summary>
 /// <param name="channelType">The channel-type of the recordings.</param>
 /// <param name="recordingGroupMode">The recording group-mode.</param>
 /// <returns>An array of zero or more recording schedule-groups.</returns>        
 public async Task<List<RecordingGroup>> GetAllRecordingGroups(ChannelType channelType, RecordingGroupMode recordingGroupMode)
 {
     var request = NewRequest(HttpMethod.Get, "RecordingGroups/{0}/{1}", channelType, recordingGroupMode);
     return await ExecuteAsync<List<RecordingGroup>>(request).ConfigureAwait(false);
 }
        /// <summary>
        /// Get all recording groups based on the recording group-mode.
        /// </summary>
        /// <param name="channelType">The channel-type of the recordings.</param>
        /// <param name="recordingGroupMode">The recording group-mode.</param>
        /// <returns>An array of zero or more recording schedule-groups.</returns>
        public async Task <List <RecordingGroup> > GetAllRecordingGroups(ChannelType channelType, RecordingGroupMode recordingGroupMode)
        {
            var request = NewRequest(HttpMethod.Get, "RecordingGroups/{0}/{1}", channelType, recordingGroupMode);

            return(await ExecuteAsync <List <RecordingGroup> >(request).ConfigureAwait(false));
        }
예제 #9
0
 public BackgroundWorkerArgs(ChannelType channelType, RecordingGroupMode recordingGroupMode, bool includeNonExisting)
 {
     _channelType        = channelType;
     _recordingGroupMode = recordingGroupMode;
     _includeNonExisting = includeNonExisting;
 }
예제 #10
0
 /// <summary>
 /// Constructs a RecordingGroup instance.
 /// </summary>
 /// <param name="recordingGroupMode">The recording group-mode.</param>
 public RecordingGroup(RecordingGroupMode recordingGroupMode)
 {
     this.RecordingGroupMode = recordingGroupMode;
 }