<?php /* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace TencentCloud\Faceid\V20180301\Models; use TencentCloud\Common\AbstractModel; /** * 意愿核身过程中播报的问题文本、用户回答的标准文本。 * * @method string getQuestion() 获取系统播报的问题文本,问题最大长度为150个字符。 * @method void setQuestion(string $Question) 设置系统播报的问题文本,问题最大长度为150个字符。 * @method array getAnswers() 获取用户答案的标准文本列表,用于识别用户回答的语音与标准文本是否一致。列表长度最大为50,单个答案长度限制10个字符。 * @method void setAnswers(array $Answers) 设置用户答案的标准文本列表,用于识别用户回答的语音与标准文本是否一致。列表长度最大为50,单个答案长度限制10个字符。 */ class IntentionQuestion extends AbstractModel { /** * @var string 系统播报的问题文本,问题最大长度为150个字符。 */ public $Question; /** * @var array 用户答案的标准文本列表,用于识别用户回答的语音与标准文本是否一致。列表长度最大为50,单个答案长度限制10个字符。 */ public $Answers; /** * @param string $Question 系统播报的问题文本,问题最大长度为150个字符。 * @param array $Answers 用户答案的标准文本列表,用于识别用户回答的语音与标准文本是否一致。列表长度最大为50,单个答案长度限制10个字符。 */ function __construct() { } /** * For internal only. DO NOT USE IT. */ public function deserialize($param) { if ($param === null) { return; } if (array_key_exists("Question",$param) and $param["Question"] !== null) { $this->Question = $param["Question"]; } if (array_key_exists("Answers",$param) and $param["Answers"] !== null) { $this->Answers = $param["Answers"]; } } }