PddCloudWebsessionSendRequest.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 PddCloudWebsessionSendRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "cache_type")
  12. */
  13. private $cacheType;
  14. /**
  15. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWebsessionSendRequest_SessionInfoListItem>, "session_info_list")
  16. */
  17. private $sessionInfoList;
  18. protected function setUserParams(&$params)
  19. {
  20. $this->setUserParam($params, "cache_type", $this->cacheType);
  21. $this->setUserParam($params, "session_info_list", $this->sessionInfoList);
  22. }
  23. public function getVersion()
  24. {
  25. return "V1";
  26. }
  27. public function getDataType()
  28. {
  29. return "JSON";
  30. }
  31. public function getType()
  32. {
  33. return "pdd.cloud.websession.send";
  34. }
  35. public function setCacheType($cacheType)
  36. {
  37. $this->cacheType = $cacheType;
  38. }
  39. public function setSessionInfoList($sessionInfoList)
  40. {
  41. $this->sessionInfoList = $sessionInfoList;
  42. }
  43. }
  44. class PddCloudWebsessionSendRequest_SessionInfoListItem extends PopBaseJsonEntity
  45. {
  46. public function __construct()
  47. {
  48. }
  49. /**
  50. * @JsonProperty(String, "key")
  51. */
  52. private $key;
  53. /**
  54. * @JsonProperty(String, "value")
  55. */
  56. private $value;
  57. /**
  58. * @JsonProperty(Long, "expir_time")
  59. */
  60. private $expirTime;
  61. /**
  62. * @JsonProperty(String, "function")
  63. */
  64. private $function;
  65. public function setKey($key)
  66. {
  67. $this->key = $key;
  68. }
  69. public function setValue($value)
  70. {
  71. $this->value = $value;
  72. }
  73. public function setExpirTime($expirTime)
  74. {
  75. $this->expirTime = $expirTime;
  76. }
  77. public function setFunction($function)
  78. {
  79. $this->function = $function;
  80. }
  81. }