REAPI/extend/sdk/taobao/top/request/TmcTopicGroupAddRequest.php
2024-09-29 15:43:18 +08:00

67 lines
1.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* TOP API: taobao.tmc.topic.group.add request
*
* @author auto create
* @since 1.0, 2024.03.14
*/
class TmcTopicGroupAddRequest
{
/**
* 消息分组名,如果不存在,会自动创建
**/
private $groupName;
/**
* 消息topic名称多个以逗号(,)分割
**/
private $topics;
private $apiParas = array();
public function setGroupName($groupName)
{
$this->groupName = $groupName;
$this->apiParas["group_name"] = $groupName;
}
public function getGroupName()
{
return $this->groupName;
}
public function setTopics($topics)
{
$this->topics = $topics;
$this->apiParas["topics"] = $topics;
}
public function getTopics()
{
return $this->topics;
}
public function getApiMethodName()
{
return "taobao.tmc.topic.group.add";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->groupName,"groupName");
RequestCheckUtil::checkNotNull($this->topics,"topics");
RequestCheckUtil::checkMaxListSize($this->topics,20,"topics");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}