public class BoneConfig
extends BaseBoneService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
API_NAME |
Constructor and Description |
---|
BoneConfig() |
Modifier and Type | Method and Description |
---|---|
void |
get(JSONArray array,
BoneCallback callback) |
static java.lang.String |
get(java.lang.String key)
获取指定的配置
|
static java.util.Map<java.lang.String,java.lang.String> |
getAll()
获取已有配置
|
void |
getAll(BoneCallback callback) |
void |
set(JSONObject kvPairs,
BoneCallback callback) |
static void |
setAll(java.util.Map<java.lang.String,java.lang.String> configs)
批量设置配置
|
public static final java.lang.String API_NAME
public void get(JSONArray array, BoneCallback callback)
public void getAll(BoneCallback callback)
public void set(JSONObject kvPairs, BoneCallback callback)
public static java.lang.String get(java.lang.String key)
key
- 配置的 keypublic static java.util.Map<java.lang.String,java.lang.String> getAll()
public static void setAll(java.util.Map<java.lang.String,java.lang.String> configs)
configs
- 配置表