GetSdkVerificationResultResponse.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php
  2. /*
  3. * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. namespace TencentCloud\Faceid\V20180301\Models;
  18. use TencentCloud\Common\AbstractModel;
  19. /**
  20. * GetSdkVerificationResult返回参数结构体
  21. *
  22. * @method string getResult() 获取整个核验结果
  23. * @method void setResult(string $Result) 设置整个核验结果
  24. * @method string getDescription() 获取结果描述
  25. * @method void setDescription(string $Description) 设置结果描述
  26. * @method integer getChargeCount() 获取计费次数
  27. * @method void setChargeCount(integer $ChargeCount) 设置计费次数
  28. * @method array getCardVerifyResults() 获取多次证照识别的结果(有序),取最终一次结果为有效结果
  29. * @method void setCardVerifyResults(array $CardVerifyResults) 设置多次证照识别的结果(有序),取最终一次结果为有效结果
  30. * @method array getCompareResults() 获取多次活体认证的结果信息(有序),取最终一次结果为有效结果
  31. * @method void setCompareResults(array $CompareResults) 设置多次活体认证的结果信息(有序),取最终一次结果为有效结果
  32. * @method string getExtra() 获取获取token时传入的
  33. * @method void setExtra(string $Extra) 设置获取token时传入的
  34. * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
  35. * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
  36. */
  37. class GetSdkVerificationResultResponse extends AbstractModel
  38. {
  39. /**
  40. * @var string 整个核验结果
  41. */
  42. public $Result;
  43. /**
  44. * @var string 结果描述
  45. */
  46. public $Description;
  47. /**
  48. * @var integer 计费次数
  49. */
  50. public $ChargeCount;
  51. /**
  52. * @var array 多次证照识别的结果(有序),取最终一次结果为有效结果
  53. */
  54. public $CardVerifyResults;
  55. /**
  56. * @var array 多次活体认证的结果信息(有序),取最终一次结果为有效结果
  57. */
  58. public $CompareResults;
  59. /**
  60. * @var string 获取token时传入的
  61. */
  62. public $Extra;
  63. /**
  64. * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
  65. */
  66. public $RequestId;
  67. /**
  68. * @param string $Result 整个核验结果
  69. * @param string $Description 结果描述
  70. * @param integer $ChargeCount 计费次数
  71. * @param array $CardVerifyResults 多次证照识别的结果(有序),取最终一次结果为有效结果
  72. * @param array $CompareResults 多次活体认证的结果信息(有序),取最终一次结果为有效结果
  73. * @param string $Extra 获取token时传入的
  74. * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
  75. */
  76. function __construct()
  77. {
  78. }
  79. /**
  80. * For internal only. DO NOT USE IT.
  81. */
  82. public function deserialize($param)
  83. {
  84. if ($param === null) {
  85. return;
  86. }
  87. if (array_key_exists("Result",$param) and $param["Result"] !== null) {
  88. $this->Result = $param["Result"];
  89. }
  90. if (array_key_exists("Description",$param) and $param["Description"] !== null) {
  91. $this->Description = $param["Description"];
  92. }
  93. if (array_key_exists("ChargeCount",$param) and $param["ChargeCount"] !== null) {
  94. $this->ChargeCount = $param["ChargeCount"];
  95. }
  96. if (array_key_exists("CardVerifyResults",$param) and $param["CardVerifyResults"] !== null) {
  97. $this->CardVerifyResults = [];
  98. foreach ($param["CardVerifyResults"] as $key => $value){
  99. $obj = new CardVerifyResult();
  100. $obj->deserialize($value);
  101. array_push($this->CardVerifyResults, $obj);
  102. }
  103. }
  104. if (array_key_exists("CompareResults",$param) and $param["CompareResults"] !== null) {
  105. $this->CompareResults = [];
  106. foreach ($param["CompareResults"] as $key => $value){
  107. $obj = new CompareResult();
  108. $obj->deserialize($value);
  109. array_push($this->CompareResults, $obj);
  110. }
  111. }
  112. if (array_key_exists("Extra",$param) and $param["Extra"] !== null) {
  113. $this->Extra = $param["Extra"];
  114. }
  115. if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
  116. $this->RequestId = $param["RequestId"];
  117. }
  118. }
  119. }