com.jdroid.java.firebase.dynamiclinks.domain.AndroidInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdroid-java-firebase-dynamiclinks Show documentation
Show all versions of jdroid-java-firebase-dynamiclinks Show documentation
Firebase Dynamic Link for Jdroid
The newest version!
package com.jdroid.java.firebase.dynamiclinks.domain;
import com.jdroid.java.utils.StringUtils;
public class AndroidInfo {
private String androidPackageName;
private String androidFallbackLink;
private String androidMinPackageVersionCode;
private String androidLink;
public String getAndroidPackageName() {
return androidPackageName;
}
public void setAndroidPackageName(String androidPackageName) {
this.androidPackageName = androidPackageName;
}
public String getAndroidFallbackLink() {
return androidFallbackLink;
}
public void setAndroidFallbackLink(String androidFallbackLink) {
this.androidFallbackLink = androidFallbackLink;
}
public String getAndroidMinPackageVersionCode() {
return androidMinPackageVersionCode;
}
public void setAndroidMinPackageVersionCode(Integer androidMinPackageVersionCode) {
this.androidMinPackageVersionCode = androidMinPackageVersionCode.toString();
}
public String getAndroidLink() {
return androidLink;
}
public void setAndroidLink(String androidLink) {
this.androidLink = androidLink;
}
String build() {
StringBuilder builder = new StringBuilder();
if (StringUtils.isNotEmpty(androidPackageName)) {
builder.append("&apn=");
builder.append(androidPackageName);
}
if (StringUtils.isNotEmpty(androidMinPackageVersionCode)) {
builder.append("&amv=");
builder.append(androidMinPackageVersionCode);
}
if (StringUtils.isNotEmpty(androidFallbackLink)) {
builder.append("&afl=");
builder.append(androidFallbackLink);
}
if (StringUtils.isNotEmpty(androidLink)) {
builder.append("&al=");
builder.append(androidLink);
}
return builder.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy