Esempio n. 1
0
 public DatenDownload getCopy() {
   DatenDownload ret = new DatenDownload();
   System.arraycopy(this.arr, 0, ret.arr, 0, arr.length);
   ret.datumFilm = this.datumFilm;
   ret.film = this.film;
   ret.mVFilmSize = this.mVFilmSize;
   ret.start = this.start;
   ret.pSet = this.pSet;
   ret.abo = this.abo;
   ret.nr = this.nr;
   ret.quelle = this.quelle;
   ret.art = this.art;
   return ret;
 }
Esempio n. 2
0
 public static void startenDownloads(Daten ddaten, ArrayList<DatenDownload> downloads) {
   // Start erstellen und zur Liste hinzufügen
   String zeit = new SimpleDateFormat("dd.MM.yyyy").format(new Date());
   LinkedList<MVUsedUrl> urlList = new LinkedList<>();
   for (DatenDownload d : downloads) {
     d.start = new Start();
     urlList.add(
         new MVUsedUrl(
             zeit,
             d.arr[DatenDownload.DOWNLOAD_THEMA_NR],
             d.arr[DatenDownload.DOWNLOAD_TITEL_NR],
             d.arr[DatenDownload.DOWNLOAD_HISTORY_URL_NR]));
   }
   if (!urlList.isEmpty()) {
     ddaten.history.zeilenSchreiben(urlList);
   }
   ListenerMediathekView.notify(
       ListenerMediathekView.EREIGNIS_START_EVENT, DatenDownload.class.getSimpleName());
 }