Skip to content

Commit

Permalink
Merge pull request flutterbest#15 from wangzijie01/patch-1
Browse files Browse the repository at this point in the history
Update TbkDgOptimusMaterialRequest.php
  • Loading branch information
flutterbest authored Nov 13, 2019
2 parents 2934c8d + 558b4bf commit 9f659bb
Showing 1 changed file with 191 additions and 175 deletions.
366 changes: 191 additions & 175 deletions src/taobao/request/TbkDgOptimusMaterialRequest.php
Original file line number Diff line number Diff line change
@@ -1,183 +1,199 @@
<?php

namespace NiuGengYun\EasyTBK\TaoBao\Request;

use NiuGengYun\EasyTBK\TaoBao\RequestCheckUtil;
/**
* TOP API: taobao.tbk.dg.optimus.material request
*
*
* @author auto create
* @since 1.0, 2018.09.13
* @since 1.0, 2019.10.31
*/

namespace NiuGengYun\EasyTBK\TaoBao\Request;

use NiuGengYun\EasyTBK\TaoBao\RequestCheckUtil;

class TbkDgOptimusMaterialRequest
{
/**
* mm_xxx_xxx_xxx的第三位
**/
private $adzoneId;

/**
* 内容详情ID
**/
private $contentId;

/**
* 内容渠道信息
**/
private $contentSource;

/**
* 设备号加密类型:MD5
**/
private $deviceEncrypt;

/**
* 设备号类型:IMEI,或者IDFA,或者UTDID
**/
private $deviceType;

/**
* 设备号加密后的值
**/
private $deviceValue;

/**
* 官方的物料Id(详细物料id见:https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=8576096)
**/
private $materialId;

/**
* 第几页,默认:1
**/
private $pageNo;

/**
* 页大小,默认20,1~100
**/
private $pageSize;

private $apiParas = array();

public function setAdzoneId($adzoneId)
{
$this->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;
}
/**
* mm_xxx_xxx_xxx的第三位
**/
private $adzoneId;

/**
* 内容专用-内容详情ID
**/
private $contentId;

/**
* 内容专用-内容渠道信息
**/
private $contentSource;

/**
* 智能匹配-设备号加密类型:MD5
**/
private $deviceEncrypt;

/**
* 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密)
**/
private $deviceType;

/**
* 智能匹配-设备号加密后的值(MD5加密需32位小写)
**/
private $deviceValue;

/**
* 商品ID,用于相似商品推荐
**/
private $itemId;

/**
* 官方的物料Id(详细物料id见:https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=8576096)
**/
private $materialId;

/**
* 第几页,默认:1
**/
private $pageNo;

/**
* 页大小,默认20,1~100
**/
private $pageSize;

private $apiParas = array();

public function setAdzoneId($adzoneId)
{
$this->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 setItemId($itemId)
{
$this->itemId = $itemId;
$this->apiParas["item_id"] = $itemId;
}

public function getItemId()
{
return $this->itemId;
}

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;
}
}

0 comments on commit 9f659bb

Please sign in to comment.