正在查看: 95爱播免登录版 v3.1.9 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 95爱播免登录版 v3.1.9 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package d.f;
import chat.entity.MessageInfo;
import chat.entity.SMEmoji.SMEmojiBean;
import chat.entity.SMEmoji.SMEmojiPagination;
import com.google.gson.Gson;
import com.huawei.hms.framework.common.ContainerUtils;
import java.io.File;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
public class g {
static volatile g f6946d;
private int f6947a = 0;
private int f6948b = 20;
private boolean f6949c = true;
class a extends d.f.c {
final d.f.e f6950a;
a(g gVar, d.f.e eVar) {
this.f6950a = eVar;
}
@Override
public void g(HashMap<Object, Object> hashMap) {
d.f.e eVar = this.f6950a;
if (eVar != null) {
eVar.a(hashMap);
}
}
}
class b extends d.f.c {
final d.f.e f6951a;
b(g gVar, d.f.e eVar) {
this.f6951a = eVar;
}
@Override
public void d(HashMap<Object, Object> hashMap) {
d.f.e eVar = this.f6951a;
if (eVar != null) {
eVar.a(hashMap);
}
}
}
class c extends d.f.c {
final d.f.e f6952a;
c(g gVar, d.f.e eVar) {
this.f6952a = eVar;
}
@Override
public void e(HashMap<Object, Object> hashMap) {
this.f6952a.a(hashMap);
}
}
class d extends d.f.c {
final d.f.e f6953a;
d(g gVar, d.f.e eVar) {
this.f6953a = eVar;
}
@Override
public void a(HashMap<Object, Object> hashMap) {
this.f6953a.a(hashMap);
}
}
class e extends d.f.c {
final d.f.e f6954a;
e(g gVar, d.f.e eVar) {
this.f6954a = eVar;
}
@Override
public void c(HashMap<Object, Object> hashMap) {
this.f6954a.a(hashMap);
}
}
class f extends com.sjnet.j.b {
final MessageInfo f6955a;
final String f6956b;
final d.f.e f6957c;
f(g gVar, MessageInfo messageInfo, String str, d.f.e eVar) {
this.f6955a = messageInfo;
this.f6956b = str;
this.f6957c = eVar;
}
public void e(int i, String str, com.sjnet.j.a aVar) {
String str2 = "i=" + i + ",s=" + str;
HashMap<Object, Object> hashMap = new HashMap<>();
hashMap.put("messageInfo", this.f6955a);
if (i == 0 && aVar != null) {
String str3 = "baseResp=" + aVar.toString();
try {
hashMap.put("pic", new JSONObject(aVar.b()).optString("str"));
} catch (Exception e) {
e.printStackTrace();
String str4 = "e=" + e.getMessage() + ",imagePath=" + this.f6956b;
}
}
hashMap.put("code", Integer.valueOf(i));
this.f6957c.a(hashMap);
}
}
class C0176g extends com.sjnet.j.b {
final MessageInfo f6958a;
final String f6959b;
final boolean f6960c;
final d.f.e f6961d;
C0176g(g gVar, MessageInfo messageInfo, String str, boolean z, d.f.e eVar) {
this.f6958a = messageInfo;
this.f6959b = str;
this.f6960c = z;
this.f6961d = eVar;
}
public void e(int i, String str, com.sjnet.j.a aVar) {
String str2 = "i=" + i + ",s=" + str;
HashMap<Object, Object> hashMap = new HashMap<>();
hashMap.put("messageInfo", this.f6958a);
hashMap.put("videoPath", this.f6959b);
hashMap.put("compressed", Boolean.valueOf(this.f6960c));
if (i == 0 && aVar != null) {
String str3 = "baseResp=" + aVar.toString();
try {
hashMap.put("videoUrl", new JSONObject(aVar.b()).optString("str"));
} catch (Exception e) {
e.printStackTrace();
String str4 = "e=" + e.getMessage() + ",videoPath=" + this.f6959b;
}
}
hashMap.put("code", Integer.valueOf(i));
this.f6961d.a(hashMap);
}
}
class h implements g.a.k<File> {
final d.f.f f6962a;
h(g gVar, d.f.f fVar) {
this.f6962a = fVar;
}
public void a(File file) {
this.f6962a.a(0, file);
}
public void c(g.a.o.b bVar) {
}
public void d(Throwable th) {
this.f6962a.a(-1, null);
}
public void onComplete() {
}
}
class i extends d.f.c {
final d.f.e f6963a;
i(g gVar, d.f.e eVar) {
this.f6963a = eVar;
}
@Override
public void b(HashMap<Object, Object> hashMap) {
d.f.e eVar = this.f6963a;
if (eVar != null) {
eVar.a(hashMap);
}
}
}
class j implements g.a.k<String> {
j() {
}
public void a(String str) {
g.this.n(str);
}
public void c(g.a.o.b bVar) {
}
public void d(Throwable th) {
g.this.f6949c = true;
}
public void onComplete() {
}
}
class k extends d.f.c {
final d.f.e f6965a;
k(g gVar, d.f.e eVar) {
this.f6965a = eVar;
}
@Override
public void h(HashMap<Object, Object> hashMap) {
d.f.e eVar = this.f6965a;
if (eVar != null) {
eVar.a(hashMap);
}
}
}
private g() {
}
public static g g() {
if (f6946d == null) {
synchronized (g.class) {
if (f6946d == null) {
f6946d = new g();
}
}
}
return f6946d;
}
private String m(long j2) {
return d.i.j.a("1638255571#5e57eece81d666d22fa4234593c18e68#" + j2);
}
public void n(String str) {
SMEmojiBean sMEmojiBean = (SMEmojiBean) new Gson().fromJson(str, SMEmojiBean.class);
if (sMEmojiBean == null || sMEmojiBean.getData() == null) {
return;
}
if (this.f6947a == 0) {
d.a.a.b.g.f6927d.clear();
}
d.a.a.b.g.f6927d.addAll(sMEmojiBean.getData());
k(sMEmojiBean.getPagination());
}
static void p(String str, g.a.g gVar) throws Exception {
InputStream l = com.sjnet.i.c.l(str, 5);
File file = new File(d.a.a.b.g.e);
if (!file.exists()) {
file.mkdirs();
}
File file2 = new File(d.a.a.b.g.d(str));
d.i.i.a(l, file2);
gVar.a(file2);
gVar.onComplete();
}
public void r(g.a.g gVar) throws Exception {
gVar.a(com.sjnet.i.c.c(l(), 5));
gVar.onComplete();
}
public void c(final String str, d.f.f fVar) {
g.a.f.j(new g.a.h() {
public final void a(g.a.g gVar) {
g.p(str, gVar);
}
}).i(com.sjnet.l.b.c()).b(new h(this, fVar));
}
public void d(int i2, d.f.e eVar) {
d.c.a.n().d(i2, new i(this, eVar));
}
public void e(int i2, d.f.e eVar) {
JSONArray jSONArray = new JSONArray();
jSONArray.put(i2);
f(jSONArray, eVar);
}
public void f(JSONArray jSONArray, d.f.e eVar) {
d.c.a.n().s(jSONArray, new c(this, eVar));
}
public void h() {
this.f6947a = 0;
j();
}
public void i(d.f.e eVar) {
d.c.a.n().o(new b(this, eVar));
}
public void j() {
g.a.f.j(new g.a.h() {
public final void a(g.a.g gVar) {
g.this.r(gVar);
}
}).i(com.sjnet.l.b.c()).b(new j());
}
public void k(SMEmojiPagination sMEmojiPagination) {
int offset = sMEmojiPagination.getOffset();
this.f6947a = offset;
if (offset < sMEmojiPagination.getTotalCount() || sMEmojiPagination.getCount() >= this.f6948b) {
this.f6949c = true;
} else {
this.f6949c = false;
}
}
public String l() {
long currentTimeMillis = System.currentTimeMillis();
return "http://api.open.weshineapp.com/1.0/hot?openid=1638255571&offset=" + this.f6947a + "&limit=" + this.f6948b + "×tamp=" + currentTimeMillis + "&sign=" + m(currentTimeMillis);
}
public boolean o() {
return this.f6949c;
}
public void s(int i2, int i3, int i4, int i5, String str, d.f.e eVar) {
d.c.a.n().F(i2, i3, i4, i5, str, new a(this, eVar));
}
public void t(int i2, int i3, int i4, int i5, int i6, int i7, String str, d.f.e eVar) {
d.c.a.n().H(i2, i3, i4, i5, i6, i7, str, new k(this, eVar));
}
public void u(int i2, int i3, d.f.e eVar) {
d.c.a.n().c(i2, i3, new d(this, eVar));
}
public void v(boolean z) {
this.f6949c = z;
}
public void w(int i2, int i3, int i4, int i5, d.f.e eVar) {
d.c.a.n().e(i3, new e(this, eVar));
}
public void x(int i2, String str, boolean z, int i3, MessageInfo messageInfo, d.f.e eVar) {
File file = new File(str);
HashMap hashMap = new HashMap();
hashMap.put("isCheckDisable", Boolean.valueOf(z));
hashMap.put("imageType", Integer.valueOf(i3));
StringBuilder sb = new StringBuilder(String.format("/v2/image/uploadMsgPic/%d", Integer.valueOf(i2)) + "?platform=" + d.c.a.n().f());
for (Map.Entry entry : hashMap.entrySet()) {
sb.append(ContainerUtils.FIELD_DELIMITER);
sb.append((String) entry.getKey());
sb.append(ContainerUtils.KEY_VALUE_DELIMITER);
sb.append(entry.getValue());
}
com.sjnet.i.c.m(sb.toString(), hashMap, file, "image").i(com.sjnet.l.b.c()).b(new f(this, messageInfo, str, eVar));
}
public void y(String str, boolean z, MessageInfo messageInfo, d.f.e eVar) {
com.sjnet.i.c.m(new StringBuilder("/v2/image/uploadMsgVideo?platform=" + d.c.a.n().f()).toString(), new HashMap(), new File(str), "videoStream").i(com.sjnet.l.b.c()).b(new C0176g(this, messageInfo, str, z, eVar));
}
}