2017-09-02 20:06:36 +02:00
|
|
|
package org.schabi.newpipe.playlist.events;
|
|
|
|
|
|
|
|
|
2017-09-07 22:01:02 +02:00
|
|
|
public class MoveEvent implements PlayQueueMessage {
|
2017-09-03 04:30:34 +02:00
|
|
|
final private int from;
|
|
|
|
final private int to;
|
2017-09-02 20:06:36 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public PlayQueueEvent type() {
|
2017-09-07 22:01:02 +02:00
|
|
|
return PlayQueueEvent.MOVE;
|
2017-09-02 20:06:36 +02:00
|
|
|
}
|
|
|
|
|
2017-09-07 22:01:02 +02:00
|
|
|
public MoveEvent(final int from, final int to) {
|
2017-09-02 20:06:36 +02:00
|
|
|
this.from = from;
|
|
|
|
this.to = to;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getFrom() {
|
|
|
|
return from;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getTo() {
|
|
|
|
return to;
|
|
|
|
}
|
|
|
|
}
|