You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
2.2 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
/**
* TOP API: alibaba.aliqin.fc.voice.num.singlecall request
*
* @author auto create
* @since 1.0, 2016.03.01
*/
class AlibabaAliqinFcVoiceNumSinglecallRequest
{
/**
* 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500
**/
private $calledNum;
/**
* 被叫号显,传入的显示号码必须是阿里大鱼“管理中心-号码管理”中申请通过的号码
**/
private $calledShowNum;
/**
* 公共回传参数在“消息返回”中会透传回该参数举例用户可以传入自己下级的会员ID在消息返回时该会员ID会包含在内用户可以根据该会员ID识别是哪位会员使用了你的应用
**/
private $extend;
/**
* 语音文件ID传入的语音文件必须是在阿里大鱼“管理中心-语音文件管理”中的可用语音文件
**/
private $voiceCode;
private $apiParas = array();
public function setCalledNum($calledNum)
{
$this->calledNum = $calledNum;
$this->apiParas["called_num"] = $calledNum;
}
public function getCalledNum()
{
return $this->calledNum;
}
public function setCalledShowNum($calledShowNum)
{
$this->calledShowNum = $calledShowNum;
$this->apiParas["called_show_num"] = $calledShowNum;
}
public function getCalledShowNum()
{
return $this->calledShowNum;
}
public function setExtend($extend)
{
$this->extend = $extend;
$this->apiParas["extend"] = $extend;
}
public function getExtend()
{
return $this->extend;
}
public function setVoiceCode($voiceCode)
{
$this->voiceCode = $voiceCode;
$this->apiParas["voice_code"] = $voiceCode;
}
public function getVoiceCode()
{
return $this->voiceCode;
}
public function getApiMethodName()
{
return "alibaba.aliqin.fc.voice.num.singlecall";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->calledNum,"calledNum");
RequestCheckUtil::checkNotNull($this->calledShowNum,"calledShowNum");
RequestCheckUtil::checkNotNull($this->voiceCode,"voiceCode");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}