正在查看: pg 娱乐 v1.0.7.202506242308 应用的 UserReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: pg 娱乐 v1.0.7.202506242308 应用的 UserReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.yueyi.container.component;
import android.content.Context;
import com.blankj.utilcode.util.LogUtils;
import com.engagelab.privates.common.component.MTCommonReceiver;
import com.engagelab.privates.core.api.MTCorePrivatesApi;
import com.engagelab.privates.core.api.WakeMessage;
import com.engagelab.privates.push.api.AliasMessage;
import com.engagelab.privates.push.api.CustomMessage;
import com.engagelab.privates.push.api.InAppMessage;
import com.engagelab.privates.push.api.MobileNumberMessage;
import com.engagelab.privates.push.api.NotificationMessage;
import com.engagelab.privates.push.api.PlatformTokenMessage;
import com.engagelab.privates.push.api.TagMessage;
import com.yueyi.container.common.ExampleGlobal;
import com.yueyi.container.listener.OnStatusListener;
import com.yueyi.container.listener.StatusObserver;
import java.util.Arrays;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000`\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u0000 &2\u00020\u0001:\u0001&B\u0005¢\u0006\u0002\u0010\u0002J\u0018\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0016J\u0018\u0010\t\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\u000bH\u0016J\u0018\u0010\f\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\r\u001a\u00020\u000eH\u0016J\u0018\u0010\u000f\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0010\u001a\u00020\u0011H\u0016J\u0018\u0010\u0012\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0010\u001a\u00020\u0011H\u0016J\u0018\u0010\u0013\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0014\u001a\u00020\u0015H\u0016J\u0018\u0010\u0016\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0017\u001a\u00020\u0018H\u0016J\u0018\u0010\u0019\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0017\u001a\u00020\u0018H\u0016J\u0018\u0010\u001a\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0017\u001a\u00020\u0018H\u0016J\u0018\u0010\u001b\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\u000bH\u0016J\u0018\u0010\u001c\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0017\u001a\u00020\u0018H\u0016J\u0018\u0010\u001d\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u001e\u001a\u00020\u001fH\u0016J\u0018\u0010 \u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010!\u001a\u00020\"H\u0016J\u0018\u0010#\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010$\u001a\u00020%H\u0016¨\u0006'"}, d2 = {"Lcom/yueyi/container/component/UserReceiver;", "Lcom/engagelab/privates/common/component/MTCommonReceiver;", "()V", "onAliasMessage", "", "context", "Landroid/content/Context;", "aliasMessage", "Lcom/engagelab/privates/push/api/AliasMessage;", "onConnectStatus", "enable", "", "onCustomMessage", "customMessage", "Lcom/engagelab/privates/push/api/CustomMessage;", "onInAppMessageClick", "inAppMessage", "Lcom/engagelab/privates/push/api/InAppMessage;", "onInAppMessageShow", "onMobileNumber", "mobileNumberMessage", "Lcom/engagelab/privates/push/api/MobileNumberMessage;", "onNotificationArrived", "notificationMessage", "Lcom/engagelab/privates/push/api/NotificationMessage;", "onNotificationClicked", "onNotificationDeleted", "onNotificationStatus", "onNotificationUnShow", "onPlatformToken", "platformTokenMessage", "Lcom/engagelab/privates/push/api/PlatformTokenMessage;", "onTagMessage", "tagMessage", "Lcom/engagelab/privates/push/api/TagMessage;", "onWake", "wakeMessage", "Lcom/engagelab/privates/core/api/WakeMessage;", "Companion", "app_kaiyuanRelease"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class UserReceiver extends MTCommonReceiver {
private static final String TAG = "UserReceiver";
public void onNotificationStatus(Context context, boolean enable) {
Intrinsics.checkNotNullParameter(context, "context");
LogUtils.i(new Object[]{TAG, "onNotificationStatus:" + enable});
ExampleGlobal.INSTANCE.setNotificationEnable(enable);
OnStatusListener onStatusListener = StatusObserver.INSTANCE.getInstance().getOnStatusListener();
if (onStatusListener != null) {
onStatusListener.onNotificationStatus(enable);
}
}
public void onConnectStatus(Context context, boolean enable) {
Intrinsics.checkNotNullParameter(context, "context");
LogUtils.i(new Object[]{TAG, "onConnectState:" + enable});
ExampleGlobal.INSTANCE.setConnectEnable(enable);
OnStatusListener onStatusListener = StatusObserver.INSTANCE.getInstance().getOnStatusListener();
if (onStatusListener != null) {
onStatusListener.onConnectStatus(enable);
}
if (enable) {
LogUtils.i(new Object[]{TAG, "registrationId:" + MTCorePrivatesApi.getRegistrationId(context)});
}
}
public void onNotificationArrived(Context context, NotificationMessage notificationMessage) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(notificationMessage, "notificationMessage");
LogUtils.i(new Object[]{TAG, "onNotificationArrived:" + notificationMessage});
}
public void onNotificationUnShow(Context context, NotificationMessage notificationMessage) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(notificationMessage, "notificationMessage");
LogUtils.i(new Object[]{TAG, "onNotificationUnShow:" + notificationMessage});
}
public void onNotificationClicked(Context context, NotificationMessage notificationMessage) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(notificationMessage, "notificationMessage");
LogUtils.i(new Object[]{TAG, "onNotificationClicked:" + notificationMessage});
}
public void onNotificationDeleted(Context context, NotificationMessage notificationMessage) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(notificationMessage, "notificationMessage");
LogUtils.i(new Object[]{TAG, "onNotificationDeleted:" + notificationMessage});
}
public void onCustomMessage(Context context, CustomMessage customMessage) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(customMessage, "customMessage");
LogUtils.i(new Object[]{TAG, "onCustomMessage:" + customMessage});
}
public void onTagMessage(Context context, TagMessage tagMessage) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(tagMessage, "tagMessage");
LogUtils.i(new Object[]{TAG, "onTagMessage:" + tagMessage});
switch (tagMessage.getSequence()) {
case 1001:
String str = "addTag code:" + tagMessage.getCode() + "\ntag:" + Arrays.toString(tagMessage.getTags());
break;
case 1002:
String str2 = "deleteTag code:" + tagMessage.getCode() + "\ntag:" + Arrays.toString(tagMessage.getTags());
break;
case 1003:
String str3 = "updateTag code:" + tagMessage.getCode() + "\ntag:" + Arrays.toString(tagMessage.getTags());
break;
case ExampleGlobal.TAG_QUERY:
String str4 = "queryTag code:" + tagMessage.getCode() + "\ntag:" + tagMessage.getQueryTag() + ",valid:" + tagMessage.isQueryTagValid();
break;
case 1005:
String str5 = "deleteAllTag code:" + tagMessage.getCode();
break;
case ExampleGlobal.TAG_QUERY_ALL:
String str6 = "queryAllTag code:" + tagMessage.getCode() + "\ntag:" + Arrays.toString(tagMessage.getTags());
break;
default:
String str7 = "tagMessage:" + tagMessage;
break;
}
}
public void onAliasMessage(Context context, AliasMessage aliasMessage) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(aliasMessage, "aliasMessage");
LogUtils.i(new Object[]{TAG, "onAliasMessage:" + aliasMessage});
switch (aliasMessage.getSequence()) {
case ExampleGlobal.ALIAS_SET:
String str = "setAlias code:" + aliasMessage.getCode() + ",alias:" + aliasMessage.getAlias();
break;
case ExampleGlobal.ALIAS_GET:
String str2 = "getAlias code:" + aliasMessage.getCode() + ",alias:" + aliasMessage.getAlias();
break;
case ExampleGlobal.ALIAS_CLEAR:
String str3 = "clearAlias code:" + aliasMessage.getCode() + ",alias:" + aliasMessage.getAlias();
break;
default:
String str4 = "aliasMessage:" + aliasMessage;
break;
}
}
public void onPlatformToken(Context context, PlatformTokenMessage platformTokenMessage) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(platformTokenMessage, "platformTokenMessage");
LogUtils.i(new Object[]{TAG, "onPlatformToken:" + platformTokenMessage});
}
public void onMobileNumber(Context context, MobileNumberMessage mobileNumberMessage) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(mobileNumberMessage, "mobileNumberMessage");
LogUtils.i(new Object[]{TAG, "onMobileNumber:" + mobileNumberMessage});
}
public void onWake(Context context, WakeMessage wakeMessage) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(wakeMessage, "wakeMessage");
LogUtils.i(new Object[]{TAG, "onWake:" + wakeMessage});
}
public void onInAppMessageShow(Context context, InAppMessage inAppMessage) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(inAppMessage, "inAppMessage");
LogUtils.d(new Object[]{TAG, "[onInAppMessageShow], " + inAppMessage});
}
public void onInAppMessageClick(Context context, InAppMessage inAppMessage) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(inAppMessage, "inAppMessage");
LogUtils.d(new Object[]{TAG, "[onInAppMessageClick], " + inAppMessage});
}
}