mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 12:07:09 +03:00
35 lines
691 B
C++
35 lines
691 B
C++
#ifndef TRACKREFERENCE_H
|
|
#define TRACKREFERENCE_H
|
|
|
|
#include <vector>
|
|
#include "Utils.h"
|
|
#include "protobuf/spirc.pb.h"
|
|
#include <NanoPBHelper.h>
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
class TrackReference
|
|
{
|
|
private:
|
|
std::string alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
std::vector<uint8_t> base62Decode(std::string uri);
|
|
|
|
public:
|
|
TrackReference(TrackRef *ref);
|
|
~TrackReference();
|
|
|
|
TrackRef* ref;
|
|
|
|
std::vector<uint8_t> gid;
|
|
|
|
bool isEpisode = false;
|
|
|
|
/**
|
|
* @brief Returns an uri that can be allowed to query track information.
|
|
*
|
|
* @return std::string
|
|
*/
|
|
std::string getMercuryRequestUri();
|
|
};
|
|
|
|
#endif |