Results 1 to 2 of 2

Thread: How to best verify success when adding a recurring recording

  1. #1
    Join Date
    Sep 2013
    Location
    USA
    Posts
    71

    How to best verify success when adding a recurring recording

    This is the call:
    myRecording = ScheduleHelper.ScheduleRecording(NPVREvent, true, pre, post, DayMask.ANY, 0, RecordingQuality.QUALITY_DEFAULT, false);

    Code stolen from NEWA follows this up with:

    if (myRecording.OID != 0)
    {
    myRecording = ScheduledRecording.LoadByOID(myRecording.OID);

    I assume that it is verifying that it added the recurring recording successfully. In my limited number of tests, however, myRecording.OID is always zero, even though the call was successful.
    How should I be verifying the success or failure of the ScheduleRecording call?

    Thanks,

    Jim

  2. #2
    Join Date
    May 2006
    Location
    Canada
    Posts
    25,690
    I would first check for null and then would check myRecording.recurrenceOID

    You may have returned a failure because of a conflict or because you tried to record an in-progress show as recurring.

    Martin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •