|
@@ -5,6 +5,7 @@ import android.text.TextUtils;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
|
import org.telegram.cricdit.utils.GsonHel;
|
|
|
+import org.telegram.cricdit.utils.SPUtils;
|
|
|
import org.telegram.onecric.base.BasePresenter;
|
|
|
import org.telegram.onecric.mvp.bean.CricketMatchBean;
|
|
|
import org.telegram.onecric.mvp.bean.UpdatesBean;
|
|
@@ -26,6 +27,8 @@ public class CricketDetailPresenter extends BasePresenter<CricketDetailView> {
|
|
|
TimeZone timeZone = TimeZone.getDefault();
|
|
|
jsonObject.put("timezone", timeZone.getID());
|
|
|
jsonObject.put("match_id", matchId);
|
|
|
+ jsonObject.put("app", "cricdit");
|
|
|
+ jsonObject.put("registrationId", SPUtils.getInstance().get("registration_token", ""));
|
|
|
addSubscription(apiStores.getCricketDetail(getRequestBody(jsonObject)), new ApiCallback() {
|
|
|
@Override
|
|
|
public void onSuccess(String data, String msg) {
|