PddLogisticsCsMessageSendRequest.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. namespace Com\Pdd\Pop\Sdk\Api\Request;
  3. use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
  4. use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
  5. class PddLogisticsCsMessageSendRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "session_id")
  12. */
  13. private $sessionId;
  14. /**
  15. * @JsonProperty(String, "wp_session_id")
  16. */
  17. private $wpSessionId;
  18. /**
  19. * @JsonProperty(String, "action_time")
  20. */
  21. private $actionTime;
  22. /**
  23. * @JsonProperty(Integer, "message_type")
  24. */
  25. private $messageType;
  26. /**
  27. * @JsonProperty(String, "text")
  28. */
  29. private $text;
  30. /**
  31. * @JsonProperty(String, "attach")
  32. */
  33. private $attach;
  34. /**
  35. * @JsonProperty(String, "preview")
  36. */
  37. private $preview;
  38. protected function setUserParams(&$params)
  39. {
  40. $this->setUserParam($params, "session_id", $this->sessionId);
  41. $this->setUserParam($params, "wp_session_id", $this->wpSessionId);
  42. $this->setUserParam($params, "action_time", $this->actionTime);
  43. $this->setUserParam($params, "message_type", $this->messageType);
  44. $this->setUserParam($params, "text", $this->text);
  45. $this->setUserParam($params, "attach", $this->attach);
  46. $this->setUserParam($params, "preview", $this->preview);
  47. }
  48. public function getVersion()
  49. {
  50. return "V1";
  51. }
  52. public function getDataType()
  53. {
  54. return "JSON";
  55. }
  56. public function getType()
  57. {
  58. return "pdd.logistics.cs.message.send";
  59. }
  60. public function setSessionId($sessionId)
  61. {
  62. $this->sessionId = $sessionId;
  63. }
  64. public function setWpSessionId($wpSessionId)
  65. {
  66. $this->wpSessionId = $wpSessionId;
  67. }
  68. public function setActionTime($actionTime)
  69. {
  70. $this->actionTime = $actionTime;
  71. }
  72. public function setMessageType($messageType)
  73. {
  74. $this->messageType = $messageType;
  75. }
  76. public function setText($text)
  77. {
  78. $this->text = $text;
  79. }
  80. public function setAttach($attach)
  81. {
  82. $this->attach = $attach;
  83. }
  84. public function setPreview($preview)
  85. {
  86. $this->preview = $preview;
  87. }
  88. }