OSDN Git Service

config値を読んで投稿者コメントのみ取得するかどうかを決定する
[coroid/inqubus.git] / frontend / src / yukihane / inqubus / config / ConfigDownloadProfile.java
1 package yukihane.inqubus.config;
2
3 import saccubus.worker.profile.CommentProfile;
4 import saccubus.worker.profile.DownloadProfile;
5 import saccubus.worker.profile.GeneralProfile;
6 import saccubus.worker.profile.LoginProfile;
7 import saccubus.worker.profile.ProxyProfile;
8 import saccubus.worker.profile.VideoProfile;
9
10 /**
11  * コンフィグに設定された値を基にしたDownloadProfile実装.
12  * @author yuki
13  */
14 public class ConfigDownloadProfile implements DownloadProfile {
15
16     private final LoginProfile loginProfile;
17     private final ProxyProfile proxyProfile;
18     private final VideoProfile videoProfile;
19     private final CommentProfile commentProfile;
20     private final GeneralProfile generalProfile;
21
22     public ConfigDownloadProfile() {
23         this.loginProfile = new ConfigLoginProfile();
24         this.proxyProfile = new ConfigProxyProfile();
25         this.videoProfile = new ConfigVideoProfile();
26         this.commentProfile = new ConfigCommentProfile();
27         this.generalProfile = new ConfigGeneralProfile();
28     }
29
30     @Override
31     public LoginProfile getLoginProfile() {
32         return loginProfile;
33     }
34
35     @Override
36     public ProxyProfile getProxyProfile() {
37         return this.proxyProfile;
38     }
39
40     @Override
41     public VideoProfile getVideoProfile() {
42         return this.videoProfile;
43     }
44
45     @Override
46     public CommentProfile getCommentProfile() {
47         return this.commentProfile;
48     }
49
50     @Override
51     public GeneralProfile getGeneralProfile() {
52         return this.generalProfile;
53     }
54 }