TrackReference.h 659 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef TRACKREFERENCE_H
  2. #define TRACKREFERENCE_H
  3. #include <vector>
  4. #include "Utils.h"
  5. #include "ProtoHelper.h"
  6. #include <iostream>
  7. #include <string>
  8. class TrackReference
  9. {
  10. private:
  11. std::string alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  12. std::vector<uint8_t> base62Decode(std::string uri);
  13. public:
  14. TrackReference(TrackRef *ref);
  15. ~TrackReference();
  16. TrackRef* ref;
  17. std::vector<uint8_t> gid;
  18. bool isEpisode = false;
  19. /**
  20. * @brief Returns an uri that can be allowed to query track information.
  21. *
  22. * @return std::string
  23. */
  24. std::string getMercuryRequestUri();
  25. };
  26. #endif