mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
big merge
This commit is contained in:
34
components/spotify/cspot/include/TrackReference.h
Normal file
34
components/spotify/cspot/include/TrackReference.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef TRACKREFERENCE_H
|
||||
#define TRACKREFERENCE_H
|
||||
|
||||
#include <vector>
|
||||
#include "Utils.h"
|
||||
#include "ProtoHelper.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
|
||||
Reference in New Issue
Block a user