DevicePlayerV3.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef __DEVICEGASV3_HPP_
  2. #define __DEVICEGASV3_HPP_
  3. #include <iostream>
  4. #include "UtilBase.hpp"
  5. #include "PlayerControl.h"
  6. #include "PlayerDeviceList.h"
  7. #include "PlayerLogin.h"
  8. #include "PlayerLogout.h"
  9. #include "PlayerStatus.h"
  10. #include "ExpelDevice.h"
  11. #include <vector>
  12. namespace gsd{
  13. class DevicePlayerV3:public ContorlHttplBase
  14. {
  15. private:
  16. std::string did = "";
  17. std::string cname = "";
  18. std::string dtype = "全向声波 R360XS2";
  19. public:
  20. DevicePlayerV3(): ContorlHttplBase(){
  21. this->DeviceInfo = "深圳机场派尔云控制协议";
  22. this->tool = DeviceTools::http;
  23. }
  24. ~DevicePlayerV3() {}
  25. bool serialization(){}
  26. bool deserialization(){}
  27. bool Consumer(uint8_t *data, int len, int &msg_id){return true;}
  28. bool getStatusMsg(int &msg_id){ return false;};
  29. int8_t Open(std::string DeviceId,uint8_t* data, int& length);
  30. int8_t Close(std::string DeviceId, uint8_t* data, int&length);
  31. int8_t Fire(std::string DeviceId, uint8_t* data, int& length);
  32. int8_t Status(std::string DeviceId, uint8_t* data, int& length);
  33. /**
  34. * @description: getUrl
  35. * @return {*}
  36. */
  37. std::string getUrl();
  38. };
  39. }
  40. #endif