TrackReference.h 691 B

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