GetLivenessResultResponse.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. * GetLivenessResult返回参数结构体
  21. *
  22. * @method string getResult() 获取流程的最终结果
  23. * @method void setResult(string $Result) 设置流程的最终结果
  24. * @method string getDescription() 获取流程的最终结果描述
  25. * @method void setDescription(string $Description) 设置流程的最终结果描述
  26. * @method FileInfo getBestFrame() 获取人像截图
  27. * @method void setBestFrame(FileInfo $BestFrame) 设置人像截图
  28. * @method FileInfo getVideo() 获取检测过程视频
  29. * @method void setVideo(FileInfo $Video) 设置检测过程视频
  30. * @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
  31. * @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
  32. */
  33. class GetLivenessResultResponse extends AbstractModel
  34. {
  35. /**
  36. * @var string 流程的最终结果
  37. */
  38. public $Result;
  39. /**
  40. * @var string 流程的最终结果描述
  41. */
  42. public $Description;
  43. /**
  44. * @var FileInfo 人像截图
  45. */
  46. public $BestFrame;
  47. /**
  48. * @var FileInfo 检测过程视频
  49. */
  50. public $Video;
  51. /**
  52. * @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
  53. */
  54. public $RequestId;
  55. /**
  56. * @param string $Result 流程的最终结果
  57. * @param string $Description 流程的最终结果描述
  58. * @param FileInfo $BestFrame 人像截图
  59. * @param FileInfo $Video 检测过程视频
  60. * @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
  61. */
  62. function __construct()
  63. {
  64. }
  65. /**
  66. * For internal only. DO NOT USE IT.
  67. */
  68. public function deserialize($param)
  69. {
  70. if ($param === null) {
  71. return;
  72. }
  73. if (array_key_exists("Result",$param) and $param["Result"] !== null) {
  74. $this->Result = $param["Result"];
  75. }
  76. if (array_key_exists("Description",$param) and $param["Description"] !== null) {
  77. $this->Description = $param["Description"];
  78. }
  79. if (array_key_exists("BestFrame",$param) and $param["BestFrame"] !== null) {
  80. $this->BestFrame = new FileInfo();
  81. $this->BestFrame->deserialize($param["BestFrame"]);
  82. }
  83. if (array_key_exists("Video",$param) and $param["Video"] !== null) {
  84. $this->Video = new FileInfo();
  85. $this->Video->deserialize($param["Video"]);
  86. }
  87. if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
  88. $this->RequestId = $param["RequestId"];
  89. }
  90. }
  91. }