UPushConfig.java 1.58 KB
package com.brframework.commonapppush.domain;

import com.brframework.commoncms.annatotion.column.SelectColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 友盟推送配置
 * @author xu
 * @date 2019/10/11 15:36
 */
@Data
@ApiModel
public class UPushConfig {


    /**
     *  可选,正式/测试模式。默认为true
     *  测试模式只对“广播”、“组播”类消息生效,其他类型的消息任务(如“文件播”)不会走测试模式
     *  测试模式只会将消息发给测试设备。测试设备需要到web上添加。
     *  Android: 测试设备属于正式设备的一个子集。
     * */
    @ApiModelProperty(value = "模式", required = true, example = "")
    @SelectColumn(options = {"true,正式模式", "false,测试模式"})
    private String productionMode;

    /** android appKey */
    @ApiModelProperty(value = "androidAppKey", required = true, example = "")
    private String androidAppKey;

    /** android appMasterSecret */
    @ApiModelProperty(value = "androidAppMasterSecret", required = true, example = "")
    private String androidAppMasterSecret;

    /** ios appKey */
    @ApiModelProperty(value = "iosAppKey", required = true, example = "")
    private String iosAppKey;

    /** ios appMasterSecret */
    @ApiModelProperty(value = "iosAppMasterSecret", required = true, example = "")
    private String iosAppMasterSecret;
}