OSDN Git Service

画面のプロファイル生成処理で共通化できる部分を共通化
[coroid/inqubus.git] / frontend / src / yukihane / inqubus / manager / Request.java
index 8a886af..b08687a 100644 (file)
@@ -1,40 +1,10 @@
 package yukihane.inqubus.manager;
 
-import saccubus.worker.profile.ConvertProfile;
-import saccubus.worker.profile.DownloadProfile;
-
 /**
  *
  * @author yuki
  */
-public class Request {
-
-    private static int serialId;
-    private final int rowId;
-    private final DownloadProfile downloadProfile;
-    private final String videoId;
-    private final ConvertProfile convertProfile;
-
-    public Request(DownloadProfile download, String videoId, ConvertProfile convert) {
-        this.rowId = ++serialId;
-        this.downloadProfile = download;
-        this.videoId = videoId;
-        this.convertProfile = convert;
-    }
-
-    public ConvertProfile getConvertProfile() {
-        return convertProfile;
-    }
-
-    public DownloadProfile getDownloadProfile() {
-        return downloadProfile;
-    }
-
-    public String getVideoId() {
-        return videoId;
-    }
+public interface Request {
 
-    Integer getRowId() {
-        return rowId;
-    }
+    int getRowId();
 }