Update Dyvmsapi SDK.
This commit is contained in:
@@ -39,12 +39,12 @@ void SingleCallByTtsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,28 @@ void SmartCallRequest::setEarlyMediaAsr(bool earlyMediaAsr)
|
||||
setParameter("EarlyMediaAsr", earlyMediaAsr ? "true" : "false");
|
||||
}
|
||||
|
||||
int SmartCallRequest::getBackgroundSpeed()const
|
||||
{
|
||||
return backgroundSpeed_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setBackgroundSpeed(int backgroundSpeed)
|
||||
{
|
||||
backgroundSpeed_ = backgroundSpeed;
|
||||
setParameter("BackgroundSpeed", std::to_string(backgroundSpeed));
|
||||
}
|
||||
|
||||
int SmartCallRequest::getBackgroundVolume()const
|
||||
{
|
||||
return backgroundVolume_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setBackgroundVolume(int backgroundVolume)
|
||||
{
|
||||
backgroundVolume_ = backgroundVolume;
|
||||
setParameter("BackgroundVolume", std::to_string(backgroundVolume));
|
||||
}
|
||||
|
||||
int SmartCallRequest::getSpeed()const
|
||||
{
|
||||
return speed_;
|
||||
@@ -159,6 +181,17 @@ void SmartCallRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
setParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
bool SmartCallRequest::getEnableITN()const
|
||||
{
|
||||
return enableITN_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setEnableITN(bool enableITN)
|
||||
{
|
||||
enableITN_ = enableITN;
|
||||
setParameter("EnableITN", enableITN ? "true" : "false");
|
||||
}
|
||||
|
||||
int SmartCallRequest::getActionCodeTimeBreak()const
|
||||
{
|
||||
return actionCodeTimeBreak_;
|
||||
@@ -269,6 +302,17 @@ void SmartCallRequest::setMuteTime(int muteTime)
|
||||
setParameter("MuteTime", std::to_string(muteTime));
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getBackgroundFileCode()const
|
||||
{
|
||||
return backgroundFileCode_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setBackgroundFileCode(const std::string& backgroundFileCode)
|
||||
{
|
||||
backgroundFileCode_ = backgroundFileCode;
|
||||
setParameter("BackgroundFileCode", backgroundFileCode);
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
|
||||
@@ -39,12 +39,12 @@ void SmartCallResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user