Package tvbrowserdataservice.file

Examples of tvbrowserdataservice.file.DayProgramFile.addProgramFrame()


      // Check whether this frame has an counterpart in the new file
      int newIdx = newCompleteFile.getProgramFrameIndexForId(id);
      if (newIdx == -1) {
        // It has not -> Add an empty frame with this ID as a order for deletion
        ProgramFrame frame = new ProgramFrame(id);
        updateFile.addProgramFrame(frame);
      }
    }

    // Determine the programs that should be inserted or updated
    for (int newIdx = 0; newIdx < newCompleteFile.getProgramFrameCount(); newIdx++) {
View Full Code Here


      // Check whether there is a counterpart in the last file
      int lastIdx = lastCompleteFile.getProgramFrameIndexForId(newFrame.getId());
      if (lastIdx == -1) {
        // There is no counterpart -> this is an insert
        ProgramFrame insertFrame = (ProgramFrame) newFrame.clone();
        updateFile.addProgramFrame(insertFrame);
      } else {
        // There is a counterpart -> this is an update
        // -> Determine the changed fields and add them
        ProgramFrame lastFrame = lastCompleteFile.getProgramFrameAt(lastIdx);
        ProgramFrame updateFrame = createUpdateFrame(lastFrame, newFrame);
View Full Code Here

        // -> Determine the changed fields and add them
        ProgramFrame lastFrame = lastCompleteFile.getProgramFrameAt(lastIdx);
        ProgramFrame updateFrame = createUpdateFrame(lastFrame, newFrame);

        if (updateFrame != null) {
          updateFile.addProgramFrame(updateFrame);
        }
      }
    }

    return updateFile;
View Full Code Here

          }
        }
      }

      if (levelFrame != null) {
        levelProg.addProgramFrame(levelFrame);
      }
    }

    return levelProg;
  }
View Full Code Here

    DayProgramFile file=mDayPrograms.get(date);
    if (file==null) {
      file=new DayProgramFile(date,mChannel);
      mDayPrograms.put(date,file);
    }
    file.addProgramFrame(frame);
    //dumpFrame(frame);
   
  }
 
  private void dumpFrame(ProgramFrame progFrame) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.