Android Open Source - EnklawaPlayer Download Episode

From Project

Back to project page EnklawaPlayer.


The source code is released under:

GNU General Public License

If you think the Android project EnklawaPlayer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

// w w w . j  a  v  a 2  s  . c  o  m
import com.koushikdutta.async.future.Future;
import com.koushikdutta.ion.Ion;


import macbury.pod.db.models.Episode;
import macbury.pod.db.models.EpisodeFile;
import macbury.pod.managers.App;

 * Created by macbury on 13.09.14.
public class DownloadEpisode {
  private EpisodeFile  episodeFile;
  private Future<File> download;
  public int progress = 0;

  public DownloadEpisode(EpisodeFile episodeFile, DownloadManager manager) {
    this.episodeFile  = episodeFile;     = Ion.with(manager.getContext())

  public Future<File> getDownload() {
    return download;

  public EpisodeFile getEpisodeFile() {
    return episodeFile;

  public int getEpisodeFileId() { return; }

  public Episode getEpisode() {
    return episodeFile.episode;

Java Source Code List