12345678910111213141516171819202122232425262728293031323334353637383940 |
- package com.taiyi.tyusbsdk.pulse;
- import android.content.Context;
- import android.content.res.Resources;
- import com.taiyi.tyusbsdk.R;
- import java.util.HashMap;
- import java.util.Map;
- public class TaiyiConfig {
- private final String appId;
- private final String appSecret;
- public boolean skipReport = false;
- public int delayDisconnect = 0;
- public Map<String, String> proxy;
- public static TaiyiConfig getDefault(Context context) {
- return new TaiyiConfig(context);
- }
- public TaiyiConfig(String appId, String appSecret) {
- this.appId = appId;
- this.appSecret = appSecret;
- }
- private TaiyiConfig(Context context) {
- Resources resources = context.getApplicationContext().getResources();
- this.appId = resources.getString(R.string.taiyi_app_id);
- this.appSecret = resources.getString(R.string.taiyi_app_secret);
- }
- public String getAppId() {
- return appId;
- }
- public String getAppSecret() {
- return appSecret;
- }
- }
|