IAPRunTimeData.hpp 458 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // IAPRunTimeData.hpp
  3. // demo
  4. //
  5. // Created by Red_mini on 2024/10/25.
  6. //
  7. #ifndef IAPRunTimeData_hpp
  8. #define IAPRunTimeData_hpp
  9. #include <stdio.h>
  10. class IAPRunTimeData{
  11. public:
  12. static IAPRunTimeData* getInstance();
  13. IAPRunTimeData();
  14. void setDeviceLevel(int level);
  15. int getDeviceLevel();
  16. private:
  17. void _init();
  18. private:
  19. static IAPRunTimeData* _instance;
  20. int _leval;
  21. };
  22. #endif /* IAPRunTimeData_hpp */