DeviceInfo.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. namespace UnionOpenExchangeDeviceSupply;
  3. class DeviceInfo{
  4. private $params=array();
  5. function __construct(){
  6. $this->params["@type"]="com.jd.union.open.gateway.api.dto.exchange.DeviceInfo";
  7. }
  8. private $deviceType;
  9. public function setDeviceType($deviceType){
  10. $this->params['deviceType'] = $deviceType;
  11. }
  12. public function getDeviceType(){
  13. return $this->deviceType;
  14. }
  15. private $orderId;
  16. public function setOrderId($orderId){
  17. $this->params['orderId'] = $orderId;
  18. }
  19. public function getOrderId(){
  20. return $this->orderId;
  21. }
  22. private $requestId;
  23. public function setRequestId($requestId){
  24. $this->params['requestId'] = $requestId;
  25. }
  26. public function getRequestId(){
  27. return $this->requestId;
  28. }
  29. private $eventTime;
  30. public function setEventTime($eventTime){
  31. $this->params['eventTime'] = $eventTime;
  32. }
  33. public function getEventTime(){
  34. return $this->eventTime;
  35. }
  36. private $contentId;
  37. public function setContentId($contentId){
  38. $this->params['contentId'] = $contentId;
  39. }
  40. public function getContentId(){
  41. return $this->contentId;
  42. }
  43. private $eventType;
  44. public function setEventType($eventType){
  45. $this->params['eventType'] = $eventType;
  46. }
  47. public function getEventType(){
  48. return $this->eventType;
  49. }
  50. private $deviceId;
  51. public function setDeviceId($deviceId){
  52. $this->params['deviceId'] = $deviceId;
  53. }
  54. public function getDeviceId(){
  55. return $this->deviceId;
  56. }
  57. private $taskId;
  58. public function setTaskId($taskId){
  59. $this->params['taskId'] = $taskId;
  60. }
  61. public function getTaskId(){
  62. return $this->taskId;
  63. }
  64. function getInstance(){
  65. return $this->params;
  66. }
  67. }
  68. ?>