public class AudioSystemFake extends java.lang.Object implements IAudioSystem
IAudioSystem
for faking Audio System with UI element.Constructor and Description |
---|
AudioSystemFake() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNowPlaying()
Returns system time for a unique String.
|
void |
setTargetHeartRate(int target)
Sets the heart rate to be targeted by the system.
|
void |
skipTrack()
Skips the current track, begins playback of next.
|
void |
togglePlayback()
Toggles between playing and not playing.
|
public java.lang.String getNowPlaying()
getNowPlaying
in interface IAudioSystem
public void setTargetHeartRate(int target)
IAudioSystem
setTargetHeartRate
in interface IAudioSystem
target
- The new targetpublic void skipTrack()
IAudioSystem
skipTrack
in interface IAudioSystem
public void togglePlayback()
IAudioSystem
togglePlayback
in interface IAudioSystem