正在查看: Cantique de Louanges v12 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cantique de Louanges v12 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.startapp.sdk.ads.video.vast;
import com.startapp.sdk.internal.mj;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public final class b {
public static final List f = Arrays.asList("image/jpeg", "image/png", "image/bmp", "image/gif");
public static final List g = Collections.singletonList("application/x-javascript");
public final String a;
public final VASTResource$Type b;
public final VASTResource$CreativeType c;
public final int d;
public final int e;
public b(String str, VASTResource$Type vASTResource$Type, VASTResource$CreativeType vASTResource$CreativeType, int i, int i2) {
this.a = str;
this.b = vASTResource$Type;
this.c = vASTResource$CreativeType;
this.d = i;
this.e = i2;
}
public static b a(mj mjVar, VASTResource$Type vASTResource$Type, int i, int i2) {
String f2;
VASTResource$CreativeType vASTResource$CreativeType;
String str;
String c = mjVar.c();
VASTResource$CreativeType vASTResource$CreativeType2 = VASTResource$CreativeType.NONE;
int ordinal = vASTResource$Type.ordinal();
if (ordinal != 0) {
if (ordinal != 1) {
if (ordinal == 2) {
f2 = mjVar.f("IFrameResource");
}
vASTResource$CreativeType = vASTResource$CreativeType2;
str = null;
} else {
f2 = mjVar.f("HTMLResource");
}
str = f2;
vASTResource$CreativeType = vASTResource$CreativeType2;
} else {
f2 = mjVar.f("StaticResource");
if (f2 != null) {
List list = f;
if (!list.contains(c) && !g.contains(c)) {
f2 = null;
}
vASTResource$CreativeType2 = list.contains(c) ? VASTResource$CreativeType.IMAGE : VASTResource$CreativeType.JAVASCRIPT;
str = f2;
vASTResource$CreativeType = vASTResource$CreativeType2;
}
vASTResource$CreativeType = vASTResource$CreativeType2;
str = null;
}
if (str == null) {
return null;
}
return new b(str, vASTResource$Type, vASTResource$CreativeType, i, i2);
}
public final String a() {
StringBuilder sb = new StringBuilder("<!DOCTYPE html><html><head><link rel=\"icon\" href=\"data:;base64,iVBORw0KGgo=\" /><style type=\"text/css\"> html, body { background-color: black; height: 100%; margin: 0; } #content { border: 0px; position: absolute; top: 50%; left: 50%; margin: -");
sb.append(this.e / 2);
sb.append("px 0 0 -");
sb.append(this.d / 2);
sb.append("px; }</style><script>function performClick() { top.location.href = \"https://www.startapp.com\"; }</script></head><body onclick=\"performClick()\">");
int ordinal = this.b.ordinal();
if (ordinal == 0) {
VASTResource$CreativeType vASTResource$CreativeType = this.c;
if (vASTResource$CreativeType == VASTResource$CreativeType.IMAGE) {
sb.append("<img id=\"content\" width=\"");
sb.append(this.d);
sb.append("\" height=\"");
sb.append(this.e);
sb.append("\" src=\"");
sb.append(this.a);
sb.append("\" />");
} else if (vASTResource$CreativeType == VASTResource$CreativeType.JAVASCRIPT) {
sb.append("<script src=\"");
sb.append(this.a);
sb.append("\" />");
}
} else {
if (ordinal == 1) {
return this.a;
}
if (ordinal == 2) {
sb.append("<iframe id=\"content\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" width=\"");
sb.append(this.d);
sb.append("\" height=\"");
sb.append(this.e);
sb.append("\" src=\"");
sb.append(this.a);
sb.append("\" />");
}
}
sb.append("</body></html>");
return sb.toString();
}
}