SupplyDeviceReq.php 883 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace UnionOpenExchangeDeviceSupply;
  3. class SupplyDeviceReq{
  4. private $params=array();
  5. function __construct(){
  6. $this->params["@type"]="com.jd.union.open.gateway.api.dto.exchange.SupplyDeviceReq";
  7. }
  8. private $uuid;
  9. public function setUuid($uuid){
  10. $this->params['uuid'] = $uuid;
  11. }
  12. public function getUuid(){
  13. return $this->uuid;
  14. }
  15. private $deviceInfoList;
  16. public function setDeviceInfoList($deviceInfoList){
  17. $size = count($deviceInfoList);
  18. for ($i=0; $i<$size; $i++){
  19. $deviceInfoList [$i] = $deviceInfoList [$i] ->getInstance();
  20. }
  21. $this->params['deviceInfoList'] = $deviceInfoList;
  22. }
  23. function getInstance(){
  24. return $this->params;
  25. }
  26. }
  27. ?>