AlibabaAliqinFcIotModbindRequest.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php
  2. /**
  3. * TOP API: alibaba.aliqin.fc.iot.modbind request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017.03.17
  7. */
  8. class AlibabaAliqinFcIotModbindRequest
  9. {
  10. /**
  11. * 物联卡和iccid保持一致
  12. **/
  13. private $billReal;
  14. /**
  15. * 物联卡业务:若无特殊为ICCID
  16. **/
  17. private $billSource;
  18. /**
  19. * iccid (20位)
  20. **/
  21. private $iccid;
  22. /**
  23. * 目前绑定的设备imei
  24. **/
  25. private $imei;
  26. /**
  27. * 若无特殊物联卡传入122
  28. **/
  29. private $midPatChannel;
  30. /**
  31. * 换绑的时候必传,换的新设备imei
  32. **/
  33. private $newimei;
  34. /**
  35. * chgBind:换绑;unBind:解绑
  36. **/
  37. private $opionType;
  38. private $apiParas = array();
  39. public function setBillReal($billReal)
  40. {
  41. $this->billReal = $billReal;
  42. $this->apiParas["bill_real"] = $billReal;
  43. }
  44. public function getBillReal()
  45. {
  46. return $this->billReal;
  47. }
  48. public function setBillSource($billSource)
  49. {
  50. $this->billSource = $billSource;
  51. $this->apiParas["bill_source"] = $billSource;
  52. }
  53. public function getBillSource()
  54. {
  55. return $this->billSource;
  56. }
  57. public function setIccid($iccid)
  58. {
  59. $this->iccid = $iccid;
  60. $this->apiParas["iccid"] = $iccid;
  61. }
  62. public function getIccid()
  63. {
  64. return $this->iccid;
  65. }
  66. public function setImei($imei)
  67. {
  68. $this->imei = $imei;
  69. $this->apiParas["imei"] = $imei;
  70. }
  71. public function getImei()
  72. {
  73. return $this->imei;
  74. }
  75. public function setMidPatChannel($midPatChannel)
  76. {
  77. $this->midPatChannel = $midPatChannel;
  78. $this->apiParas["mid_pat_channel"] = $midPatChannel;
  79. }
  80. public function getMidPatChannel()
  81. {
  82. return $this->midPatChannel;
  83. }
  84. public function setNewimei($newimei)
  85. {
  86. $this->newimei = $newimei;
  87. $this->apiParas["newimei"] = $newimei;
  88. }
  89. public function getNewimei()
  90. {
  91. return $this->newimei;
  92. }
  93. public function setOpionType($opionType)
  94. {
  95. $this->opionType = $opionType;
  96. $this->apiParas["opion_type"] = $opionType;
  97. }
  98. public function getOpionType()
  99. {
  100. return $this->opionType;
  101. }
  102. public function getApiMethodName()
  103. {
  104. return "alibaba.aliqin.fc.iot.modbind";
  105. }
  106. public function getApiParas()
  107. {
  108. return $this->apiParas;
  109. }
  110. public function check()
  111. {
  112. RequestCheckUtil::checkNotNull($this->billReal,"billReal");
  113. RequestCheckUtil::checkNotNull($this->billSource,"billSource");
  114. RequestCheckUtil::checkNotNull($this->iccid,"iccid");
  115. RequestCheckUtil::checkNotNull($this->imei,"imei");
  116. RequestCheckUtil::checkNotNull($this->midPatChannel,"midPatChannel");
  117. RequestCheckUtil::checkNotNull($this->opionType,"opionType");
  118. }
  119. public function putOtherTextParam($key, $value) {
  120. $this->apiParas[$key] = $value;
  121. $this->$key = $value;
  122. }
  123. }