parent
3fd6ff7f70
commit
7ed5d7f449
@ -0,0 +1,18 @@ |
||||
package com.arialyy.downloadutil.core.command; |
||||
|
||||
import com.arialyy.downloadutil.core.IDownloadTarget; |
||||
|
||||
/** |
||||
* Created by lyy on 2016/9/20. |
||||
* 取消命令 |
||||
*/ |
||||
public class CancelCommand extends IDownloadCommand{ |
||||
public CancelCommand(IDownloadTarget target) { |
||||
super(target); |
||||
} |
||||
|
||||
@Override |
||||
public void executeComment() { |
||||
|
||||
} |
||||
} |
@ -0,0 +1,18 @@ |
||||
package com.arialyy.downloadutil.core.command; |
||||
|
||||
import com.arialyy.downloadutil.core.IDownloadTarget; |
||||
|
||||
/** |
||||
* Created by lyy on 2016/9/20. |
||||
* 获取下载状态的命令 |
||||
*/ |
||||
public class GetStateCommand extends IDownloadCommand { |
||||
public GetStateCommand(IDownloadTarget target) { |
||||
super(target); |
||||
} |
||||
|
||||
@Override |
||||
public void executeComment() { |
||||
|
||||
} |
||||
} |
@ -1,18 +1,21 @@ |
||||
package com.arialyy.downloadutil.core.command; |
||||
|
||||
import android.support.annotation.NonNull; |
||||
|
||||
import com.arialyy.downloadutil.core.IDownloadTarget; |
||||
import com.arialyy.downloadutil.core.Task; |
||||
|
||||
/** |
||||
* Created by lyy on 2016/8/22. |
||||
* 开始命令 |
||||
*/ |
||||
public class StartCommand extends IDownloadCommand{ |
||||
public StartCommand(IDownloadTarget target) { |
||||
public StartCommand(@NonNull IDownloadTarget target) { |
||||
super(target); |
||||
} |
||||
|
||||
@Override |
||||
public void executeComment() { |
||||
|
||||
// target.startTask();
|
||||
} |
||||
} |
||||
|
@ -0,0 +1,18 @@ |
||||
package com.arialyy.downloadutil.core.command; |
||||
|
||||
import com.arialyy.downloadutil.core.IDownloadTarget; |
||||
|
||||
/** |
||||
* Created by lyy on 2016/9/20. |
||||
* 停止命令 |
||||
*/ |
||||
public class StopCommand extends IDownloadCommand { |
||||
public StopCommand(IDownloadTarget target) { |
||||
super(target); |
||||
} |
||||
|
||||
@Override |
||||
public void executeComment() { |
||||
|
||||
} |
||||
} |
Loading…
Reference in new issue