Files
rr3-apk/decompiled/sources/com/helpshift/chat/HSEventProxy.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -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);
}
});
}
}