正在查看: Aptoide v9.22.5.3 应用的 SocialMediaNavigator.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aptoide v9.22.5.3 应用的 SocialMediaNavigator.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package cm.aptoide.pt.socialmedia;
import cm.aptoide.aptoideviews.socialmedia.SocialMediaView;
import cm.aptoide.pt.navigator.ExternalNavigator;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.a0.d.g;
import kotlin.a0.d.m;
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0018\u0000 \r2\u00020\u0001:\u0001\rB\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0010\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\nH\u0002J\u000e\u0010\u000b\u001a\u00020\f2\u0006\u0010\t\u001a\u00020\nR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u000e"}, d2 = {"Lcm/aptoide/pt/socialmedia/SocialMediaNavigator;", "", "externalNavigator", "Lcm/aptoide/pt/navigator/ExternalNavigator;", "(Lcm/aptoide/pt/navigator/ExternalNavigator;)V", "getExternalNavigator", "()Lcm/aptoide/pt/navigator/ExternalNavigator;", "mapSocialMediaTypeToUrl", "", "socialMediaType", "Lcm/aptoide/aptoideviews/socialmedia/SocialMediaView$SocialMediaType;", "navigateToSocialMediaWebsite", "", "Companion", "app_vanillaProdRelease"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final class SocialMediaNavigator {
private final ExternalNavigator externalNavigator;
public static final Companion INSTANCE = new Companion(null);
private static String FACEBOOK_URL = "https://facebook.com/aptoide/";
private static String TWITTER_URL = "https://twitter.com/aptoide";
private static String INSTAGRAM_URL = "https://www.instagram.com/aptoidestore";
private static String TIKTOK_URL = "https://www.tiktok.com/@aptoidestore";
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u000e\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u001a\u0010\u0003\u001a\u00020\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\bR\u001a\u0010\t\u001a\u00020\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\n\u0010\u0006\"\u0004\b\u000b\u0010\bR\u001a\u0010\f\u001a\u00020\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\r\u0010\u0006\"\u0004\b\u000e\u0010\bR\u001a\u0010\u000f\u001a\u00020\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0010\u0010\u0006\"\u0004\b\u0011\u0010\b¨\u0006\u0012"}, d2 = {"Lcm/aptoide/pt/socialmedia/SocialMediaNavigator$Companion;", "", "()V", "FACEBOOK_URL", "", "getFACEBOOK_URL", "()Ljava/lang/String;", "setFACEBOOK_URL", "(Ljava/lang/String;)V", "INSTAGRAM_URL", "getINSTAGRAM_URL", "setINSTAGRAM_URL", "TIKTOK_URL", "getTIKTOK_URL", "setTIKTOK_URL", "TWITTER_URL", "getTWITTER_URL", "setTWITTER_URL", "app_vanillaProdRelease"}, k = 1, mv = {1, 6, 0}, xi = 48)
public static final class Companion {
private Companion() {
}
public Companion(g gVar) {
this();
}
public final String getFACEBOOK_URL() {
return SocialMediaNavigator.FACEBOOK_URL;
}
public final String getINSTAGRAM_URL() {
return SocialMediaNavigator.INSTAGRAM_URL;
}
public final String getTIKTOK_URL() {
return SocialMediaNavigator.TIKTOK_URL;
}
public final String getTWITTER_URL() {
return SocialMediaNavigator.TWITTER_URL;
}
public final void setFACEBOOK_URL(String str) {
m.f(str, "<set-?>");
SocialMediaNavigator.FACEBOOK_URL = str;
}
public final void setINSTAGRAM_URL(String str) {
m.f(str, "<set-?>");
SocialMediaNavigator.INSTAGRAM_URL = str;
}
public final void setTIKTOK_URL(String str) {
m.f(str, "<set-?>");
SocialMediaNavigator.TIKTOK_URL = str;
}
public final void setTWITTER_URL(String str) {
m.f(str, "<set-?>");
SocialMediaNavigator.TWITTER_URL = str;
}
}
@Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
public class WhenMappings {
public static final int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[SocialMediaView.SocialMediaType.values().length];
iArr[SocialMediaView.SocialMediaType.FACEBOOK_CLICK.ordinal()] = 1;
iArr[SocialMediaView.SocialMediaType.TWITTER_CLICK.ordinal()] = 2;
iArr[SocialMediaView.SocialMediaType.INSTAGRAM_CLICK.ordinal()] = 3;
iArr[SocialMediaView.SocialMediaType.TIKTOK_CLICK.ordinal()] = 4;
$EnumSwitchMapping$0 = iArr;
}
}
public SocialMediaNavigator(ExternalNavigator externalNavigator) {
m.f(externalNavigator, "externalNavigator");
this.externalNavigator = externalNavigator;
}
private final String mapSocialMediaTypeToUrl(SocialMediaView.SocialMediaType socialMediaType) {
int i = WhenMappings.$EnumSwitchMapping$0[socialMediaType.ordinal()];
if (i == 1) {
return FACEBOOK_URL;
}
if (i == 2) {
return TWITTER_URL;
}
if (i == 3) {
return INSTAGRAM_URL;
}
if (i == 4) {
return TIKTOK_URL;
}
throw new NoWhenBranchMatchedException();
}
public final ExternalNavigator getExternalNavigator() {
return this.externalNavigator;
}
public final void navigateToSocialMediaWebsite(SocialMediaView.SocialMediaType socialMediaType) {
m.f(socialMediaType, "socialMediaType");
this.externalNavigator.navigateToExternalWebsite(mapSocialMediaTypeToUrl(socialMediaType));
}
}