酷狗概念版 v2.5.5版本的 MD5 值为:782d327088fca4e58310f35a56f41319

以下内容为反编译后的 a.java 源代码,内容仅作参考


package com.kugou.android.app.studyroom;

import android.text.TextUtils;
import android.util.Pair;
import c.a.a.i;
import c.c.o;
import c.c.u;
import c.t;
import com.kugou.common.network.w;
import com.qq.e.comm.constants.Constants;
import com.wandoujia.upgradesdk.UpgradeManager;
import d.ab;
import d.z;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
import rx.e;

public class a {

    public interface InterfaceC0348a {
        @o
        e<ab> a(@u Map<String, String> map, @c.c.a z zVar);
    }

    public static e<Pair<Integer, Integer>> a(String str) {
        if (com.kugou.common.environment.a.Z()) {
            return e.a((Throwable) new IllegalArgumentException("not login."));
        }
        if (TextUtils.isEmpty(str)) {
            return e.a((Throwable) new IllegalArgumentException("RoomId is empty."));
        }
        InterfaceC0348a interfaceC0348a = (InterfaceC0348a) new t.a().b("ChannelTodayFeatured").a(i.a()).a(w.a(com.kugou.android.app.a.a.eq, "http://rmservice.kugou.com/v1/group/heartbeat")).a(c.b.a.a.a()).a().b().a(InterfaceC0348a.class);
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put("userid", Long.toString(com.kugou.common.environment.a.Y()));
            jSONObject.put(UpgradeManager.PARAM_TOKEN, com.kugou.common.environment.a.j());
            jSONObject.put(Constants.KEYS.BIZ, "1000");
            jSONObject.put("groupid", str);
        } catch (JSONException e2) {
            e2.printStackTrace();
        }
        String jSONObject2 = jSONObject.toString();
        HashMap hashMap = new HashMap(12);
        w.b(hashMap, jSONObject2);
        return interfaceC0348a.a(hashMap, z.a(d.u.a("application/json"), jSONObject2)).c(new rx.b.e<ab, e<Pair<Integer, Integer>>>() {
            @Override
            public e<Pair<Integer, Integer>> call(ab abVar) {
                try {
                    JSONObject jSONObject3 = new JSONObject(abVar.f());
                    return e.a(new Pair(Integer.valueOf(jSONObject3.optInt("status")), Integer.valueOf(jSONObject3.optInt("errcode"))));
                } catch (IOException | JSONException e3) {
                    e3.printStackTrace();
                    return e.a((Throwable) new Exception());
                }
            }
        });
    }
}