Talrijke aanpassingen gemaakt. Vorige commit gaf een fout en ik heb geen zin om informatie opnieuw te typen.
This commit is contained in:
@@ -150,5 +150,19 @@ public class ITPlaylist extends ITObject {
|
||||
Dispatch tracks = Dispatch.get(object, "Tracks").toDispatch();
|
||||
return new ITTrackCollection(tracks);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the shuffle state.
|
||||
* @return true if current state is shuffle.
|
||||
*/
|
||||
public boolean getShuffle() {
|
||||
return Dispatch.get(object, "Shuffle").getBoolean();
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle the shuffle state.
|
||||
*/
|
||||
public void toggleShuffle() {
|
||||
setShuffle(!getShuffle());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -342,6 +342,13 @@ public class iTunes {
|
||||
setMute(!getMute());
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle the shuffle state.
|
||||
*/
|
||||
public void toggleShuffle() {
|
||||
getCurrentPlaylist().toggleShuffle();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current player state.
|
||||
* @return Returns the current player state.
|
||||
|
||||
Reference in New Issue
Block a user