/*
 * 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.
 */
package com.tencentcloudapi.tbm.v20180129.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DescribeIndustryNewsResponse extends AbstractModel{

    /**
    * 总计文章数量
    */
    @SerializedName("NewsCount")
    @Expose
    private Long NewsCount;

    /**
    * 总计来源数量
    */
    @SerializedName("FromCount")
    @Expose
    private Long FromCount;

    /**
    * 总计疑似负面数量
    */
    @SerializedName("AdverseCount")
    @Expose
    private Long AdverseCount;

    /**
    * 文章列表
    */
    @SerializedName("NewsSet")
    @Expose
    private IndustryNews [] NewsSet;

    /**
    * 按天统计的数量列表
    */
    @SerializedName("DateCountSet")
    @Expose
    private DateCount [] DateCountSet;

    /**
    * 唯一请求 ID，每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
    */
    @SerializedName("RequestId")
    @Expose
    private String RequestId;

    /**
     * Get 总计文章数量 
     * @return NewsCount 总计文章数量
     */
    public Long getNewsCount() {
        return this.NewsCount;
    }

    /**
     * Set 总计文章数量
     * @param NewsCount 总计文章数量
     */
    public void setNewsCount(Long NewsCount) {
        this.NewsCount = NewsCount;
    }

    /**
     * Get 总计来源数量 
     * @return FromCount 总计来源数量
     */
    public Long getFromCount() {
        return this.FromCount;
    }

    /**
     * Set 总计来源数量
     * @param FromCount 总计来源数量
     */
    public void setFromCount(Long FromCount) {
        this.FromCount = FromCount;
    }

    /**
     * Get 总计疑似负面数量 
     * @return AdverseCount 总计疑似负面数量
     */
    public Long getAdverseCount() {
        return this.AdverseCount;
    }

    /**
     * Set 总计疑似负面数量
     * @param AdverseCount 总计疑似负面数量
     */
    public void setAdverseCount(Long AdverseCount) {
        this.AdverseCount = AdverseCount;
    }

    /**
     * Get 文章列表 
     * @return NewsSet 文章列表
     */
    public IndustryNews [] getNewsSet() {
        return this.NewsSet;
    }

    /**
     * Set 文章列表
     * @param NewsSet 文章列表
     */
    public void setNewsSet(IndustryNews [] NewsSet) {
        this.NewsSet = NewsSet;
    }

    /**
     * Get 按天统计的数量列表 
     * @return DateCountSet 按天统计的数量列表
     */
    public DateCount [] getDateCountSet() {
        return this.DateCountSet;
    }

    /**
     * Set 按天统计的数量列表
     * @param DateCountSet 按天统计的数量列表
     */
    public void setDateCountSet(DateCount [] DateCountSet) {
        this.DateCountSet = DateCountSet;
    }

    /**
     * Get 唯一请求 ID，每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 
     * @return RequestId 唯一请求 ID，每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
     */
    public String getRequestId() {
        return this.RequestId;
    }

    /**
     * Set 唯一请求 ID，每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
     * @param RequestId 唯一请求 ID，每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
     */
    public void setRequestId(String RequestId) {
        this.RequestId = RequestId;
    }

    public DescribeIndustryNewsResponse() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public DescribeIndustryNewsResponse(DescribeIndustryNewsResponse source) {
        if (source.NewsCount != null) {
            this.NewsCount = new Long(source.NewsCount);
        }
        if (source.FromCount != null) {
            this.FromCount = new Long(source.FromCount);
        }
        if (source.AdverseCount != null) {
            this.AdverseCount = new Long(source.AdverseCount);
        }
        if (source.NewsSet != null) {
            this.NewsSet = new IndustryNews[source.NewsSet.length];
            for (int i = 0; i < source.NewsSet.length; i++) {
                this.NewsSet[i] = new IndustryNews(source.NewsSet[i]);
            }
        }
        if (source.DateCountSet != null) {
            this.DateCountSet = new DateCount[source.DateCountSet.length];
            for (int i = 0; i < source.DateCountSet.length; i++) {
                this.DateCountSet[i] = new DateCount(source.DateCountSet[i]);
            }
        }
        if (source.RequestId != null) {
            this.RequestId = new String(source.RequestId);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap<String, String> map, String prefix) {
        this.setParamSimple(map, prefix + "NewsCount", this.NewsCount);
        this.setParamSimple(map, prefix + "FromCount", this.FromCount);
        this.setParamSimple(map, prefix + "AdverseCount", this.AdverseCount);
        this.setParamArrayObj(map, prefix + "NewsSet.", this.NewsSet);
        this.setParamArrayObj(map, prefix + "DateCountSet.", this.DateCountSet);
        this.setParamSimple(map, prefix + "RequestId", this.RequestId);

    }
}

