parent
01ba765278
commit
3fd6ff7f70
@ -0,0 +1,18 @@ |
||||
package com.arialyy.downloadutil.core.command; |
||||
|
||||
import com.arialyy.downloadutil.core.IDownloadTarget; |
||||
|
||||
/** |
||||
* Created by lyy on 2016/8/22. |
||||
* 添加任务的命令 |
||||
*/ |
||||
public class AddCommand extends IDownloadCommand { |
||||
public AddCommand(IDownloadTarget target) { |
||||
super(target); |
||||
} |
||||
|
||||
@Override |
||||
public void executeComment() { |
||||
|
||||
} |
||||
} |
@ -0,0 +1,34 @@ |
||||
package com.arialyy.downloadutil.core.command; |
||||
|
||||
import com.arialyy.downloadutil.core.DownloadTarget; |
||||
import com.arialyy.downloadutil.core.IDownloadTarget; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* Created by lyy on 2016/8/22. |
||||
* 下载命令 |
||||
*/ |
||||
public abstract class IDownloadCommand { |
||||
private IDownloadTarget target; |
||||
|
||||
public IDownloadCommand(IDownloadTarget target) { |
||||
this.target = target; |
||||
} |
||||
|
||||
/** |
||||
* 执行命令 |
||||
*/ |
||||
public abstract void executeComment(); |
||||
|
||||
/** |
||||
* 设置下载器 |
||||
* |
||||
* @param downloadTarget {@link IDownloadTarget} |
||||
*/ |
||||
public void setDownloadTarget(IDownloadTarget downloadTarget) { |
||||
target = downloadTarget; |
||||
} |
||||
|
||||
|
||||
} |
@ -0,0 +1,18 @@ |
||||
package com.arialyy.downloadutil.core.command; |
||||
|
||||
import com.arialyy.downloadutil.core.IDownloadTarget; |
||||
|
||||
/** |
||||
* Created by lyy on 2016/8/22. |
||||
* 开始命令 |
||||
*/ |
||||
public class StartCommand extends IDownloadCommand{ |
||||
public StartCommand(IDownloadTarget target) { |
||||
super(target); |
||||
} |
||||
|
||||
@Override |
||||
public void executeComment() { |
||||
|
||||
} |
||||
} |
Loading…
Reference in new issue