2017-09-02 20:06:36 +02:00
|
|
|
package org.schabi.newpipe.playlist.events;
|
|
|
|
|
|
|
|
|
2017-10-23 03:58:01 +02:00
|
|
|
public class RemoveEvent implements PlayQueueEvent {
|
2017-10-26 22:42:50 +02:00
|
|
|
final private int removeIndex;
|
|
|
|
final private int queueIndex;
|
2017-09-02 20:06:36 +02:00
|
|
|
|
|
|
|
@Override
|
2017-10-23 03:58:01 +02:00
|
|
|
public PlayQueueEventType type() {
|
|
|
|
return PlayQueueEventType.REMOVE;
|
2017-09-02 20:06:36 +02:00
|
|
|
}
|
|
|
|
|
2017-10-26 22:42:50 +02:00
|
|
|
public RemoveEvent(final int removeIndex, final int queueIndex) {
|
|
|
|
this.removeIndex = removeIndex;
|
|
|
|
this.queueIndex = queueIndex;
|
2017-09-02 20:06:36 +02:00
|
|
|
}
|
|
|
|
|
2017-10-26 22:42:50 +02:00
|
|
|
public int getQueueIndex() {
|
|
|
|
return queueIndex;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getRemoveIndex() {
|
|
|
|
return removeIndex;
|
2017-09-02 20:06:36 +02:00
|
|
|
}
|
|
|
|
}
|