2019-11-14 19:42:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-11-16 22:03:13 +00:00
|
|
|
#include <vector>
|
2022-08-19 08:37:03 +00:00
|
|
|
#include <map>
|
|
|
|
#include <Arduino.h>
|
2019-11-14 19:42:02 +00:00
|
|
|
#include "playlist.h"
|
|
|
|
|
|
|
|
class PlaylistManager {
|
2022-08-19 08:37:03 +00:00
|
|
|
private:
|
|
|
|
Playlist get_playlist_for_tag_id(String id);
|
|
|
|
String current_rfid_tag_id;
|
|
|
|
uint32_t audio_current_time = 0;
|
|
|
|
|
|
|
|
public:
|
2019-11-14 19:42:02 +00:00
|
|
|
PlaylistManager();
|
2022-08-19 08:37:03 +00:00
|
|
|
std::map<String, String> map;
|
|
|
|
Playlist get_playlist(String rfid_id);
|
2022-08-21 09:37:42 +00:00
|
|
|
bool has_playlist(String rfid_id);
|
2022-08-19 08:37:03 +00:00
|
|
|
Playlist current_playlist;
|
|
|
|
void set_audio_current_time(uint32_t time);
|
|
|
|
};
|