package com.czhj.sdk.common.models; import android.text.TextUtils; public class Config { private static Config gInstance; private boolean disable_boot_mark; private boolean disable_oaid_api; private int disable_up_oaid; private String log; private boolean mIsGDPRRegion = false; private int max_send_log_records = 20; private int send_log_interval = 3; private Config() { } public static Config sharedInstance() { if (gInstance == null) { synchronized (Config.class) { if (gInstance == null) { gInstance = new Config(); } } } return gInstance; } public int getDisable_up_OAid() { return this.disable_up_oaid; } public String getLogUrl() { return TextUtils.isEmpty(this.log) ? "https://dc.sigmob.cn/log" : this.log; } public int getMax_send_log_records() { return this.max_send_log_records; } public boolean getOaidApiDisable() { return this.disable_oaid_api; } public int getSend_log_interval() { return this.send_log_interval; } public boolean isDisableBootMark() { return this.disable_boot_mark; } public boolean isGDPRRegion() { return this.mIsGDPRRegion; } public void update(boolean z, boolean z2, boolean z3, int i, String str, int i2, int i3) { this.mIsGDPRRegion = z; this.disable_boot_mark = z2; this.disable_oaid_api = z3; this.disable_up_oaid = i; this.max_send_log_records = i3; this.send_log_interval = i2; this.log = str; } }