Files
rr3-apk/decompiled/sources/com/fyber/inneractive/sdk/external/InneractiveUserConfig.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

64 lines
1.5 KiB
Java

package com.fyber.inneractive.sdk.external;
import com.fyber.inneractive.sdk.util.IAlog;
import java.util.regex.Pattern;
/* loaded from: classes2.dex */
public class InneractiveUserConfig {
public int a = -1;
public Gender b = null;
@Deprecated
public String c = null;
public enum Gender {
MALE,
FEMALE
}
public static boolean ageIsValid(int i) {
return i >= 1 && i <= 120;
}
public int getAge() {
return this.a;
}
public Gender getGender() {
return this.b;
}
@Deprecated
public String getZipCode() {
return this.c;
}
public InneractiveUserConfig setAge(int i) {
if (ageIsValid(i)) {
this.a = i;
} else {
IAlog.f("The Age is invalid. Please use a number between 1 and 120", new Object[0]);
}
return this;
}
@Deprecated
public InneractiveUserConfig setZipCode(String str) {
if (str == null || !Pattern.compile("(^\\d{5}$)|(^\\d{5}-\\d{4}$)").matcher(str).matches()) {
IAlog.c("The zipcode format is invalid. Please use a valid value.", new Object[0]);
} else {
this.c = str;
}
return this;
}
public InneractiveUserConfig setGender(Gender gender) {
if (gender != null) {
this.b = gender;
} else {
IAlog.f("The gender is invalid. Please use one of the suggested InneractiveAdView.Gender", new Object[0]);
}
return this;
}
}