package com.ytpm.app.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("应用默认配置")
public class YtAppDefaultConfig {
    /** 配置ID */
    @ApiModelProperty("配置ID")
    private Integer configId;
    /** 配置名称 */
    @ApiModelProperty("配置名称")
    private String configName;
    /** 微信开放ID */
    @ApiModelProperty("微信开放ID")
    private String openId;
    /** 微信秘钥 */
    @ApiModelProperty("微信秘钥")
    private String secret;
    /** 应用ID */
    @ApiModelProperty("微信秘钥")
    private String appId;
    /** 应用秘钥 */
    @ApiModelProperty("应用秘钥")
    private String appKey;
    @ApiModelProperty("taku应用ID")
    private String takuAppId;
    @ApiModelProperty("taku应用key")
    private String takuKey;
    @ApiModelProperty("taku横幅")
    private String takuBannerPid;
    @ApiModelProperty("taku原生")
    private String takuNativePid;
    @ApiModelProperty("taku激励")
    private String takuRewardPid;
    @ApiModelProperty("taku插屏")
    private String takuInterstitialPid;
    /** 应用类型 */
    @ApiModelProperty("应用类型")
    private Integer appType;
    @ApiModelProperty("是否允许root")
    private Integer canUseRoot;
    @ApiModelProperty("是否允许adb")
    private Integer canUseAdb;
    @ApiModelProperty("是否允许浮窗")
    private Integer canUseFloat;
    @ApiModelProperty("是否允许累加体力")
    private Integer canAccumulation;
    @ApiModelProperty("是否允许模拟器")
    private Integer canSimulator;
    @ApiModelProperty("体力等待时间（秒）")
    private Integer powerWaitTime;
    @ApiModelProperty("插屏间隔时间（秒）")
    private Integer interstitialIntervalTime;
    @ApiModelProperty("渠道类型id")
    private String ditchId;
    @ApiModelProperty("原生信息流间隔时间（秒）")
    private Integer flowIntervalTime;
    @ApiModelProperty("体力不足提示语")
    private String taskLimitTip;
    @ApiModelProperty("用户低收益提示语")
    private String lowValueTip;
    @ApiModelProperty("刷子提示语")
    private String brushTip;

    @ApiModelProperty("是否缓存激励视频")
    private Integer canCacheVideo;

    @ApiModelProperty("启动页等待时间（秒）")
    private Integer startWaitTime;

    @ApiModelProperty("是否允许自动刷新")
    private Integer canAllowAutoRefresh;

    public YtAppDefaultConfig(Object o, String appName, String wxAppId, String wxSecret, String appId, String appKey, int appType,String ditchId) {
        this.configId = Objects.isNull(o)?null: Integer.parseInt(o.toString());
        this.configName = appName;
        this.openId = wxAppId;
        this.secret = wxSecret;
        this.appId = appId;
        this.appKey = appKey;
        this.appType = appType;
        this.ditchId = ditchId;
    }
}
