OSDN Git Service

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