DevTools.php 782 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * 设备查询工具集.
  4. * @author wangkuiwei
  5. * @name DevTools
  6. *
  7. */
  8. class DevTools extends HttpBase {
  9. public function __construct() {
  10. parent::__construct();
  11. }
  12. public function getAliasesOf($packageName, $regId, $retries = 1) {
  13. $fields = array('registration_id' => $regId, 'restricted_package_name' => $packageName);
  14. $result = $this->getResult(\PushRequestPath::V1_GET_ALL_ALIAS(), $fields, $retries);
  15. return $result;
  16. }
  17. public function getTopicsOf($packageName, $regId, $retries = 1) {
  18. $fields = array('registration_id' => $regId, 'restricted_package_name' => $packageName);
  19. $result = $this->getResult(\PushRequestPath::V1_GET_ALL_TOPIC(), $fields, $retries);
  20. return $result;
  21. }
  22. }
  23. ?>