1 package yukihane.inqubus.manager;
4 import saccubus.worker.ConvertProgress;
5 import saccubus.worker.DownloadProgress;
6 import saccubus.worker.Worker.SaccubusListener;
7 import saccubus.worker.profile.ConvertProfile;
8 import saccubus.worker.profile.DownloadProfile;
14 public class Request {
16 private static int serialId;
17 private final int rowId;
18 private final DownloadProfile downloadProfile;
19 private final String videoId;
20 private final SaccubusListener<DownloadProgress> downloadProgressListener;
21 private final ConvertProfile convertProfile;
22 private final SaccubusListener<ConvertProgress> convertProgressListener;
24 public Request(DownloadProfile download, String videoId, SaccubusListener<DownloadProgress> downListener,
25 ConvertProfile convert, SaccubusListener<ConvertProgress> convListener) {
26 this.rowId = ++serialId;
27 this.downloadProfile = download;
28 this.videoId = videoId;
29 this.downloadProgressListener = downListener;
30 this.convertProfile = convert;
31 this.convertProgressListener = convListener;
34 public ConvertProfile getConvertProfile() {
35 return convertProfile;
38 public DownloadProfile getDownloadProfile() {
39 return downloadProfile;
42 public String getVideoId() {
50 SaccubusListener<DownloadProgress> getDownloadProgressListener() {
51 return downloadProgressListener;
54 SaccubusListener<ConvertProgress> getConvertProgressListener() {
55 return convertProgressListener;