mirror of https://github.com/TeamNewPipe/NewPipe
26 lines
533 B
Java
26 lines
533 B
Java
package org.schabi.newpipe.playlist.events;
|
|
|
|
|
|
public class SelectEvent implements PlayQueueEvent {
|
|
final private int oldIndex;
|
|
final private int newIndex;
|
|
|
|
@Override
|
|
public PlayQueueEventType type() {
|
|
return PlayQueueEventType.SELECT;
|
|
}
|
|
|
|
public SelectEvent(final int oldIndex, final int newIndex) {
|
|
this.oldIndex = oldIndex;
|
|
this.newIndex = newIndex;
|
|
}
|
|
|
|
public int getOldIndex() {
|
|
return oldIndex;
|
|
}
|
|
|
|
public int getNewIndex() {
|
|
return newIndex;
|
|
}
|
|
}
|