package com.huawei.hms.hwid;
import android.content.Context;
import com.huawei.hms.api.Api;
import com.huawei.hms.api.HuaweiApiAvailability;
import com.huawei.hms.common.HuaweiApi;
import com.huawei.hms.support.api.entity.core.CoreNaming;
import com.huawei.hms.support.hianalytics.HiAnalyticsClient;
import com.huawei.hms.utils.Util;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public class w extends HuaweiApi {
private static final Api a = new Api<>(HuaweiApiAvailability.HMS_API_NAME_GAME);
private static final a c = new a();
private Context b;
/* loaded from: classes2.dex */
public static class a implements Api.ApiOptions.Optional {
}
@Override // com.huawei.hms.common.HuaweiApi
public int getApiLevel() {
return 1;
}
public w(Context context) {
super(context, a, c, new v());
this.b = context;
}
public void a() {
as.b("SignInNoticeClientImpl", "request Jos Notice.", true);
String reportEntry = HiAnalyticsClient.reportEntry(getContext(), CoreNaming.GETNOTICE, 60900100);
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("noticeType", 1);
jSONObject.put("hmsSdkVersionName", "6.11.0.301");
jSONObject.put("cpId", Util.getCpId(this.b));
doWrite(new ae(CoreNaming.GETNOTICE, jSONObject.toString(), reportEntry));
} catch (JSONException unused) {
as.c("SignInNoticeClientImpl", "createParams Notice request meet JSONException.", true);
}
}
}