89 lines
2.0 KiB
Java
89 lines
2.0 KiB
Java
package com.fenghoo.seven.common;
|
||
|
||
/**
|
||
* Created by Administrator on 2016/1/10.
|
||
* 作者:xudiwei
|
||
* <p>
|
||
* 描述:常量类
|
||
*/
|
||
|
||
public class Constants {
|
||
/**
|
||
* 模拟网络请求成功
|
||
*/
|
||
public static final int SUCCESS = 1;
|
||
/**
|
||
* 模拟网络请求失败
|
||
*/
|
||
public static final int FAILE = 0;
|
||
|
||
/**
|
||
* 模拟数据网络耗时
|
||
*/
|
||
public static final int LOADING_TIME = 1500;
|
||
|
||
/**
|
||
* 模拟数据每页长度
|
||
*/
|
||
public static final int LIMIT = 20;
|
||
|
||
/**
|
||
* 讯飞语音appid
|
||
*/
|
||
public static final String IFLYTEK_APPID = "58a176c2";
|
||
/**
|
||
* 当前App创建在Sd卡里的根目录,其它的目录都要创建在App_root_dir里面。
|
||
*/
|
||
public static final String APP_ROOT_DIR = "LifeTree";
|
||
/**
|
||
* 存图片的dir
|
||
*/
|
||
public static final String IMG_DIR = APP_ROOT_DIR + "/img";
|
||
/**
|
||
* 图片预览里保存图片的目录
|
||
*/
|
||
public static final String SAVE_IMG_DIR = APP_ROOT_DIR + "/save";
|
||
/**
|
||
* apk下载存放目录
|
||
*/
|
||
public static final String APK_DIR = APP_ROOT_DIR + "/apk";
|
||
/**
|
||
* 缓存目录
|
||
*/
|
||
public static final String CACHE_DIR = APP_ROOT_DIR + "/cache";
|
||
/**
|
||
* SharedPreferences 文件名
|
||
*/
|
||
public static final String SP_CONFIG_FILE_NAME = "config";
|
||
private static final String TAG = "Constants";
|
||
/**
|
||
* 当前用户的user_id(token)
|
||
*/
|
||
private static String userId = "";
|
||
/**
|
||
* 当前用户的角色 1=普通用户 2=老师 3=义工
|
||
*/
|
||
// private static int role = -1;
|
||
/**
|
||
* 当前用户所在的班级
|
||
*/
|
||
private static String classId = "";
|
||
/**
|
||
* 当前用户的IMidentify
|
||
*/
|
||
private static String identify = "";
|
||
|
||
|
||
/**
|
||
* 消息内存中的用户相关的信息。
|
||
*/
|
||
public static void clearAccountInfo() {
|
||
userId = "";
|
||
//role = -1;
|
||
classId = "";
|
||
identify = "";
|
||
}
|
||
|
||
|
||
}
|