OSDN Git Service

45741c2a8b4bf6cb349b2bc62d3d9c323bdfe368
[coroid/inqubus.git] / frontend / src / yukihane / inqubus / manager / Request.java
1 package yukihane.inqubus.manager;
2
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;
8
9 /**
10  *
11  * @author yuki
12  */
13 public class Request {
14
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;
22
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;
31     }
32
33     public ConvertProfile getConvertProfile() {
34         return convertProfile;
35     }
36
37     public DownloadProfile getDownloadProfile() {
38         return downloadProfile;
39     }
40
41     public String getVideoId() {
42         return videoId;
43     }
44
45     Integer getRowId() {
46         return rowId;
47     }
48
49     WorkerListener<DownloadProgress> getDownloadProgressListener() {
50         return downloadProgressListener;
51     }
52
53     WorkerListener<ConvertProgress> getConvertProgressListener() {
54         return convertProgressListener;
55     }
56 }