forked from j62/ctbrec
Make Model and Download serializable
This commit is contained in:
parent
a165a83dca
commit
2da3d64ac8
|
@ -1,6 +1,7 @@
|
|||
package ctbrec;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
||||
|
@ -15,9 +16,9 @@ import ctbrec.recorder.download.Download;
|
|||
import ctbrec.recorder.download.StreamSource;
|
||||
import ctbrec.sites.Site;
|
||||
|
||||
public interface Model extends Comparable<Model> {
|
||||
public interface Model extends Comparable<Model>, Serializable {
|
||||
|
||||
public static enum State {
|
||||
public enum State {
|
||||
ONLINE("online"),
|
||||
OFFLINE("offline"),
|
||||
AWAY("away"),
|
||||
|
|
|
@ -2,6 +2,7 @@ package ctbrec.recorder.download;
|
|||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.time.Duration;
|
||||
import java.time.Instant;
|
||||
|
||||
|
@ -9,7 +10,7 @@ import ctbrec.Config;
|
|||
import ctbrec.Model;
|
||||
import ctbrec.Recording;
|
||||
|
||||
public interface Download {
|
||||
public interface Download extends Serializable {
|
||||
public void init(Config config, Model model, Instant startTime);
|
||||
public void start() throws IOException;
|
||||
public void stop();
|
||||
|
|
Loading…
Reference in New Issue