AdUtilsVideo.h 561 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // AdUtilsVideo.h
  3. // Billiards
  4. //
  5. // Created by zhuge on 17/10/25.
  6. //
  7. //
  8. #ifndef AdUtilsVideo_h
  9. #define AdUtilsVideo_h
  10. #include "AdHeader.h"
  11. NS_AD_BEGIN
  12. class AdUtilsVideo : public Ref{
  13. public:
  14. AdUtilsVideo();
  15. ~AdUtilsVideo();
  16. CREATE_FUNC_NO_INIT(AdUtilsVideo);
  17. public:
  18. bool hasVideo(string pageName){
  19. return true;
  20. };
  21. void showVideo(string pageName, const function<void()> &onRewardGot, const function<void()> &onAdCanceled){
  22. onRewardGot();
  23. };
  24. };
  25. NS_AD_END
  26. #endif /* AdUtilsVideo_h */