adzoneId = $adzoneId; $this->apiParas["adzone_id"] = $adzoneId; } public function getAdzoneId() { return $this->adzoneId; } public function setContentId($contentId) { $this->contentId = $contentId; $this->apiParas["content_id"] = $contentId; } public function getContentId() { return $this->contentId; } public function setContentSource($contentSource) { $this->contentSource = $contentSource; $this->apiParas["content_source"] = $contentSource; } public function getContentSource() { return $this->contentSource; } public function setDeviceEncrypt($deviceEncrypt) { $this->deviceEncrypt = $deviceEncrypt; $this->apiParas["device_encrypt"] = $deviceEncrypt; } public function getDeviceEncrypt() { return $this->deviceEncrypt; } public function setDeviceType($deviceType) { $this->deviceType = $deviceType; $this->apiParas["device_type"] = $deviceType; } public function getDeviceType() { return $this->deviceType; } public function setDeviceValue($deviceValue) { $this->deviceValue = $deviceValue; $this->apiParas["device_value"] = $deviceValue; } public function getDeviceValue() { return $this->deviceValue; } public function setMaterialId($materialId) { $this->materialId = $materialId; $this->apiParas["material_id"] = $materialId; } public function getMaterialId() { return $this->materialId; } public function setPageNo($pageNo) { $this->pageNo = $pageNo; $this->apiParas["page_no"] = $pageNo; } public function getPageNo() { return $this->pageNo; } public function setPageSize($pageSize) { $this->pageSize = $pageSize; $this->apiParas["page_size"] = $pageSize; } public function getPageSize() { return $this->pageSize; } public function getApiMethodName() { return "taobao.tbk.dg.optimus.material"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize"); RequestCheckUtil::checkMinValue($this->pageSize,1,"pageSize"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }