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++; }); }
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++; }); }
public void ReloadRecordingGroups(IControlService tvControlAgent, RecordingGroupMode groupMode) { _model.RecordingGroups = new List <RecordingGroup>(tvControlAgent.GetAllRecordingGroups(_model.ChannelType, groupMode)); _model.RecordingsByGroup.Clear(); }
public void ReloadRecordingGroups(IControlService tvControlAgent, RecordingGroupMode groupMode) { _model.RecordingGroups = new List<RecordingGroup>(tvControlAgent.GetAllRecordingGroups(_model.ChannelType, groupMode)); _model.RecordingsByGroup.Clear(); }
/// <summary> /// Constructs a RecordingGroup instance. /// </summary> /// <param name="recordingGroupMode">The recording group-mode.</param> public RecordingGroup(RecordingGroupMode recordingGroupMode) { this.RecordingGroupMode = recordingGroupMode; }
public BackgroundWorkerArgs(ChannelType channelType, RecordingGroupMode recordingGroupMode, bool includeNonExisting) { _channelType = channelType; _recordingGroupMode = recordingGroupMode; _includeNonExisting = includeNonExisting; }
/// <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)); }