<?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\Cms\V20190321\Models;
use TencentCloud\Common\AbstractModel;

/**
 * 图片违法详情
 *
 * @method integer getEvilType() 获取恶意类型
100：正常 
20006：涉毒违法
 * @method void setEvilType(integer $EvilType) 设置恶意类型
100：正常 
20006：涉毒违法
 * @method integer getHitFlag() 获取处置判定 0：正常 1：可疑
 * @method void setHitFlag(integer $HitFlag) 设置处置判定 0：正常 1：可疑
 * @method array getKeywords() 获取关键词明细
 * @method void setKeywords(array $Keywords) 设置关键词明细
 * @method array getLabels() 获取违法标签：返回违法特征中文描述，如赌桌，枪支
 * @method void setLabels(array $Labels) 设置违法标签：返回违法特征中文描述，如赌桌，枪支
 * @method integer getScore() 获取违法分：分值范围 0-100，分数越高违法倾向越明显
 * @method void setScore(integer $Score) 设置违法分：分值范围 0-100，分数越高违法倾向越明显
 */
class ImageIllegalDetect extends AbstractModel
{
    /**
     * @var integer 恶意类型
100：正常 
20006：涉毒违法
     */
    public $EvilType;

    /**
     * @var integer 处置判定 0：正常 1：可疑
     */
    public $HitFlag;

    /**
     * @var array 关键词明细
     */
    public $Keywords;

    /**
     * @var array 违法标签：返回违法特征中文描述，如赌桌，枪支
     */
    public $Labels;

    /**
     * @var integer 违法分：分值范围 0-100，分数越高违法倾向越明显
     */
    public $Score;

    /**
     * @param integer $EvilType 恶意类型
100：正常 
20006：涉毒违法
     * @param integer $HitFlag 处置判定 0：正常 1：可疑
     * @param array $Keywords 关键词明细
     * @param array $Labels 违法标签：返回违法特征中文描述，如赌桌，枪支
     * @param integer $Score 违法分：分值范围 0-100，分数越高违法倾向越明显
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("EvilType",$param) and $param["EvilType"] !== null) {
            $this->EvilType = $param["EvilType"];
        }

        if (array_key_exists("HitFlag",$param) and $param["HitFlag"] !== null) {
            $this->HitFlag = $param["HitFlag"];
        }

        if (array_key_exists("Keywords",$param) and $param["Keywords"] !== null) {
            $this->Keywords = $param["Keywords"];
        }

        if (array_key_exists("Labels",$param) and $param["Labels"] !== null) {
            $this->Labels = $param["Labels"];
        }

        if (array_key_exists("Score",$param) and $param["Score"] !== null) {
            $this->Score = $param["Score"];
        }
    }
}
