<filename>SenseInfoHelper/src/main/java/com/imorning/senseinfohelper/utils/Constants.java<gh_stars>0
package com.imorning.senseinfohelper.utils;

/**
 * 公用常量类。
 *
 * @author iMorning
 */
public class Constants {
    public static final String SENSE_INFO_HOST = "http://route.showapi.com/268-1";
    public static final String API_ID = "showapi_appid";
    public static final String API_KEY = "showapi_sign";
    public static final String KEYWORD = "keyword";
    public static final String PROVINCE_ID = "proId";
    public static final String CITY_ID = "cityId";
    public static final String AREA_ID = "areaId";
    public static final String PAGE = "page";


    /**
     * 默认时间格式
     **/
    public static final String DATE_TIME_FORMAT = "yyyyMMddHHmmss";

    /**
     * Date默认时区
     **/
    public static final String DATE_TIMEZONE = "GMT+8";

    /**
     * UTF-8字符集
     **/
    public static final String CHARSET_UTF8 = "UTF-8";

    /**
     * GBK字符集
     **/
    public static final String CHARSET_GBK = "GBK";

    /**
     * JSON 应格式
     */
    public static final String FORMAT_JSON = "json";
    /**
     * XML 应格式
     */
    public static final String FORMAT_XML = "xml";

    /**
     * MD5签名方式
     */
    public static final String SIGN_METHOD_MD5 = "md5";
    /**
     * HMAC签名方式
     */
    public static final String SIGN_METHOD_HMAC = "hmac";


    public static final String SHOWAPI_APPID = "showapi_appid";
    public static final String SHOWAPI_TIMESTAMP = "showapi_timestamp";
    public static final String SHOWAPI_SIGN = "showapi_sign";
    public static final String SHOWAPI_SIGN_METHOD = "showapi_sign_method";

    public static final String SHOWAPI_RES_CODE = "showapi_res_code";
    public static final String SHOWAPI_RES_ERROR = "showapi_res_error";
    public static final String SHOWAPI_RES_BODY = "showapi_res_body";


}
