1 package yukihane.inqubus.manager;
3 import saccubus.worker.convert.ConvertProgress;
4 import saccubus.worker.download.DownloadProgress;
5 import saccubus.worker.WorkerListener;
6 import saccubus.worker.profile.ConvertProfile;
7 import saccubus.worker.profile.DownloadProfile;
13 public class Request {
15 private static int serialId;
16 private final int rowId;
17 private final DownloadProfile downloadProfile;
18 private final String videoId;
19 private final WorkerListener<DownloadProgress> downloadProgressListener;
20 private final ConvertProfile convertProfile;
21 private final WorkerListener<ConvertProgress> convertProgressListener;
23 public Request(DownloadProfile download, String videoId, WorkerListener<DownloadProgress> downListener,
24 ConvertProfile convert, WorkerListener<ConvertProgress> convListener) {
25 this.rowId = ++serialId;
26 this.downloadProfile = download;
27 this.videoId = videoId;
28 this.downloadProgressListener = downListener;
29 this.convertProfile = convert;
30 this.convertProgressListener = convListener;
33 public ConvertProfile getConvertProfile() {
34 return convertProfile;
37 public DownloadProfile getDownloadProfile() {
38 return downloadProfile;
41 public String getVideoId() {
49 WorkerListener<DownloadProgress> getDownloadProgressListener() {
50 return downloadProgressListener;
53 WorkerListener<ConvertProgress> getConvertProgressListener() {
54 return convertProgressListener;