Files
rr3-apk/decompiled-community/sources/com/helpshift/chat/HSEventProxy.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

54 lines
2.3 KiB
Java

package com.helpshift.chat;
import com.helpshift.HelpshiftAuthenticationFailureReason;
import com.helpshift.HelpshiftEventsListener;
import com.helpshift.concurrency.HSThreadingService;
import com.helpshift.log.HSLogger;
import java.util.Map;
/* loaded from: classes3.dex */
public class HSEventProxy {
public HelpshiftEventsListener eventsListener;
public final HSThreadingService hsThreadingService;
public void setHelpshiftEventsListener(HelpshiftEventsListener helpshiftEventsListener) {
this.eventsListener = helpshiftEventsListener;
}
public HSEventProxy(HSThreadingService hSThreadingService) {
this.hsThreadingService = hSThreadingService;
}
public void sendEvent(final String str, final Map map) {
HSLogger.d("HSEvntPrxy", "Event occurred: " + str);
this.hsThreadingService.runOnUIThread(new Runnable() { // from class: com.helpshift.chat.HSEventProxy.1
@Override // java.lang.Runnable
public void run() {
if (HSEventProxy.this.eventsListener == null) {
return;
}
HSEventProxy.this.eventsListener.onEventOccurred(str, map);
}
});
}
public void sendAuthFailureEvent(final String str) {
HSLogger.d("HSEvntPrxy", "Authentication failure, reason: " + str);
this.hsThreadingService.runOnUIThread(new Runnable() { // from class: com.helpshift.chat.HSEventProxy.2
@Override // java.lang.Runnable
public void run() {
if (HSEventProxy.this.eventsListener == null) {
return;
}
HelpshiftAuthenticationFailureReason helpshiftAuthenticationFailureReason = HelpshiftAuthenticationFailureReason.UNKNOWN;
if ("missing user auth token".equals(str)) {
helpshiftAuthenticationFailureReason = HelpshiftAuthenticationFailureReason.REASON_AUTH_TOKEN_NOT_PROVIDED;
} else if ("invalid user auth token".equals(str)) {
helpshiftAuthenticationFailureReason = HelpshiftAuthenticationFailureReason.REASON_INVALID_AUTH_TOKEN;
}
HSEventProxy.this.eventsListener.onUserAuthenticationFailure(helpshiftAuthenticationFailureReason);
}
});
}
}