package com.gh.common.constant;

public class Constants {

	public static final int CONTINUE_DOWNLOAD_TASK = 0x123;
	public static final int PAUSE_DOWNLOAD_TASK = 0x124;
	public static final int DOWNLOAD_ROLL = 0x125;
	public static final int SEND_NEWS_FEEDBACK = 0x126;
	public static final int SEND_COMMENT_FEEDBACK = 0x127;
	
	public static final String KEY_DOWNLOAD_ENTRY = "key_download_entry";
	public static final String KEY_DOWNLOAD_ACTION = "key_download_action";
	
	public static final int MAX_DOWNLOAD_THREAD_SIZE = 3;
	public static final int MAX_DOWNLOADING_SIZE = 3;
	public static final long SPEED_CHECK_INTERVAL = 1000;//速度监测频率
	
	//手机号码匹配规则
	public static final String REGEX_MOBILE = "^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$";
	public static final String REGEX_ACCOUNT = "^[a-zA-Z_]\\w{5,17}$";
	public static final String REGEX_PASSWORD = "^[a-zA-Z]\\w{5,31}$";
	
	//输入规则
	public static final String INPUT_RULE = "0123456789abcdefghijklnmopqrstuvwxyzABCDEFGHIJKLNMOPQRSTUVWXYZ_";
	
	//最少需要多少数据才能上传
	public static final int DATA_AMOUNT = 20;
	
	//游戏 cd间隔
	public static final int GAME_CD = 5 * 60 * 1000;
	//新闻 cd间隔
	public static final int NEWS_CD = 10 * 60 * 1000;
	//platform cd间隔
	public static final int PLATFORM_CD = 10 * 60 * 1000;
	//update cd间隔
	public static final int UPDATE_CD = 5 * 60 * 1000;
	//搜索 cd间隔
	public static final int SEARCH_CD = 5 * 60 * 1000;
	//评论 cd间隔
	public static final int COMMENT_CD = 60 * 1000;

}
