| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?php
- namespace Com\Pdd\Pop\Sdk\Api\Request;
- use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
- use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
- class PddDdkLiveUrlGenRequest extends PopBaseHttpRequest
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(String, "custom_parameters")
- */
- private $customParameters;
- /**
- * @JsonProperty(Boolean, "generate_mobile")
- */
- private $generateMobile;
- /**
- * @JsonProperty(Boolean, "generate_schema_url")
- */
- private $generateSchemaUrl;
- /**
- * @JsonProperty(Boolean, "generate_short_url")
- */
- private $generateShortUrl;
- /**
- * @JsonProperty(Boolean, "generate_we_app")
- */
- private $generateWeApp;
- /**
- * @JsonProperty(Integer, "live_type")
- */
- private $liveType;
- /**
- * @JsonProperty(String, "p_id")
- */
- private $pId;
- /**
- * @JsonProperty(String, "room_id")
- */
- private $roomId;
- protected function setUserParams(&$params)
- {
- $this->setUserParam($params, "custom_parameters", $this->customParameters);
- $this->setUserParam($params, "generate_mobile", $this->generateMobile);
- $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl);
- $this->setUserParam($params, "generate_short_url", $this->generateShortUrl);
- $this->setUserParam($params, "generate_we_app", $this->generateWeApp);
- $this->setUserParam($params, "live_type", $this->liveType);
- $this->setUserParam($params, "p_id", $this->pId);
- $this->setUserParam($params, "room_id", $this->roomId);
- }
- public function getVersion()
- {
- return "V1";
- }
- public function getDataType()
- {
- return "JSON";
- }
- public function getType()
- {
- return "pdd.ddk.live.url.gen";
- }
- public function setCustomParameters($customParameters)
- {
- $this->customParameters = $customParameters;
- }
- public function setGenerateMobile($generateMobile)
- {
- $this->generateMobile = $generateMobile;
- }
- public function setGenerateSchemaUrl($generateSchemaUrl)
- {
- $this->generateSchemaUrl = $generateSchemaUrl;
- }
- public function setGenerateShortUrl($generateShortUrl)
- {
- $this->generateShortUrl = $generateShortUrl;
- }
- public function setGenerateWeApp($generateWeApp)
- {
- $this->generateWeApp = $generateWeApp;
- }
- public function setLiveType($liveType)
- {
- $this->liveType = $liveType;
- }
- public function setPId($pId)
- {
- $this->pId = $pId;
- }
- public function setRoomId($roomId)
- {
- $this->roomId = $roomId;
- }
- }
|