Skip to content
Snippets Groups Projects
Commit b3a79979 authored by David Trattnig's avatar David Trattnig
Browse files

Service stubs.

parent 8dc50126
No related branches found
No related tags found
No related merge requests found
class EngineService():
def __init__(self):
pass
def activate_engine(self, engine_number):
"""
Activates one engine and deactivates the other
Args:
engine_number (Integer): Number of the engine
"""
return 'do some magic!'
def get_active_engine(self):
"""
Retrieves the status entry of the currently active engine
Returns:
StatusEntry
"""
return 'do some magic!'
def get_engine_health(self, engine_number):
"""
Retrieves the most recent health info of the requested engine
Args:
engine_number (Integer): Number of the engine
Returns:
(HealthInfo)
"""
return 'do some magic!'
def log_engine_health(self, engine_number):
"""
Logs another health entry for the given engine
Args:
engine_number (Integer): Number of the engine
"""
return 'do some magic!'
engineService = EngineService()
\ No newline at end of file
class PlaylistService():
def __init__(self):
pass
def current_playlist(self):
"""
Retrieves the currently playing playlist.
"""
return "current playlist"
def next_playlist(self):
"""
Retrieves the playlist playing next.
Returns Playlist
"""
return "next playlist"
playlistService = PlaylistService()
\ No newline at end of file
class TrackService():
def __init__(self):
pass
def current_track(self):
"""
Retrieves the currently playing track.
Returns:
(PlayLogEntry)
"""
return "current track"
def get_track(self, track_id):
"""
Retrieves a single track by its ID.
Args:
track_id (Integer): ID of the track-service entry
Returns:
(PlayLogEntry)
"""
return "a single track by id"
def list_tracks(self, offset=None, limit=None):
"""
Lists the most recent track-service entries.
Args:
offset (Integer): The number of items to skip before starting to collect the result set
limit (Integer): The numbers of items to return
Returns:
(List[PlayLogEntry])
"""
return "some list of tracks"
trackService = TrackService()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment