what-the-bank/sources/com/huawei/hms/common/internal/ClientSettings.java

125 lines
2.6 KiB
Java

package com.huawei.hms.common.internal;
import android.app.Activity;
import com.huawei.hms.support.api.client.SubAppInfo;
import com.huawei.hms.support.api.entity.auth.Scope;
import java.lang.ref.WeakReference;
import java.util.List;
/* loaded from: classes2.dex */
public class ClientSettings {
private String a;
private String b;
private List<Scope> c;
private String d;
private List<String> e;
private String f;
private SubAppInfo g;
private WeakReference<Activity> h;
private boolean i;
private String j;
private boolean k;
public ClientSettings(String str, String str2, List<Scope> list, String str3, List<String> list2) {
this.a = str;
this.b = str2;
this.c = list;
this.d = str3;
this.e = list2;
}
public Activity getCpActivity() {
WeakReference<Activity> weakReference = this.h;
if (weakReference == null) {
return null;
}
return weakReference.get();
}
public void setCpActivity(Activity activity) {
this.h = new WeakReference<>(activity);
this.i = true;
}
public ClientSettings(String str, String str2, List<Scope> list, String str3, List<String> list2, SubAppInfo subAppInfo) {
this(str, str2, list, str3, list2);
this.g = subAppInfo;
}
public void setUseInnerHms(boolean z) {
this.k = z;
}
public void setSubAppId(SubAppInfo subAppInfo) {
this.g = subAppInfo;
}
public void setScopes(List<Scope> list) {
this.c = list;
}
public void setInnerHmsPkg(String str) {
this.j = str;
}
public void setCpID(String str) {
this.f = str;
}
public void setClientPackageName(String str) {
this.a = str;
}
public void setClientClassName(String str) {
this.b = str;
}
public void setAppID(String str) {
this.d = str;
}
public void setApiName(List<String> list) {
this.e = list;
}
public boolean isUseInnerHms() {
return this.k;
}
public boolean isHasActivity() {
return this.i;
}
public SubAppInfo getSubAppID() {
return this.g;
}
public List<Scope> getScopes() {
return this.c;
}
public String getInnerHmsPkg() {
return this.j;
}
public String getCpID() {
return this.f;
}
public String getClientPackageName() {
return this.a;
}
public String getClientClassName() {
return this.b;
}
public String getAppID() {
return this.d;
}
public List<String> getApiName() {
return this.e;
}
}