2006-10-21, 10:44 PM
I have next lines of code (part of larger code block)
GBPVR.Public.Programme pr;
pr = GBPVR.Backend.Common.ScheduleHelper.getInstance().GetProgrammeByOID(Progid);
GBPVR.Public.ScheduledRecording rec;
rec = GBPVR.Backend.Common.ScheduleHelper.getInstance().SheduleRecording(pr.getChannelOID(), pr.getStartTime(), pr.getEndTime(), pr, GBPVR.Public.ScheduledRecording.TYPE_RECORD_ONCE, GBPVR.Public.ScheduledRecording.GROUP_NONE, null);
Everything is working correctly, the rec variable is created correctly, but I don't know how to save the newly created ScheduledRecording object to the database.
Or should I do it in a complete other way?
Can somebody help me please ?
GBPVR.Public.Programme pr;
pr = GBPVR.Backend.Common.ScheduleHelper.getInstance().GetProgrammeByOID(Progid);
GBPVR.Public.ScheduledRecording rec;
rec = GBPVR.Backend.Common.ScheduleHelper.getInstance().SheduleRecording(pr.getChannelOID(), pr.getStartTime(), pr.getEndTime(), pr, GBPVR.Public.ScheduledRecording.TYPE_RECORD_ONCE, GBPVR.Public.ScheduledRecording.GROUP_NONE, null);
Everything is working correctly, the rec variable is created correctly, but I don't know how to save the newly created ScheduledRecording object to the database.
Or should I do it in a complete other way?
Can somebody help me please ?