REAPI/extend/sdk/taobao/top/request/TopEventPublishRequest.php

66 lines
1.1 KiB
PHP
Raw Normal View History

2024-09-29 15:43:18 +08:00
<?php
/**
* TOP API: taobao.top.event.publish request
*
* @author auto create
* @since 1.0, 2023.03.31
*/
class TopEventPublishRequest
{
/**
* 事件内容
**/
private $content;
/**
* 事件编码
**/
private $triggerCode;
private $apiParas = array();
public function setContent($content)
{
$this->content = $content;
$this->apiParas["content"] = $content;
}
public function getContent()
{
return $this->content;
}
public function setTriggerCode($triggerCode)
{
$this->triggerCode = $triggerCode;
$this->apiParas["trigger_code"] = $triggerCode;
}
public function getTriggerCode()
{
return $this->triggerCode;
}
public function getApiMethodName()
{
return "taobao.top.event.publish";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->content,"content");
RequestCheckUtil::checkNotNull($this->triggerCode,"triggerCode");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}