mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
big merge
This commit is contained in:
28
components/spotify/cspot/include/MercuryResponse.h
Normal file
28
components/spotify/cspot/include/MercuryResponse.h
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
#ifndef MERCURYRESPONSE_H
|
||||
#define MERCURYRESPONSE_H
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
#include "ProtoHelper.h"
|
||||
#include "Utils.h"
|
||||
|
||||
typedef std::vector<std::vector<uint8_t>> mercuryParts;
|
||||
|
||||
class MercuryResponse
|
||||
{
|
||||
private:
|
||||
void parseResponse(std::vector<uint8_t> &data);
|
||||
std::vector<uint8_t> data;
|
||||
public:
|
||||
MercuryResponse(std::vector<uint8_t> &data);
|
||||
void decodeHeader();
|
||||
Header mercuryHeader;
|
||||
uint8_t flags;
|
||||
mercuryParts parts;
|
||||
uint64_t sequenceId;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user