导航菜单

页面标题

页面副标题

Vesuvius v228 - eqmessaging.java 源代码

正在查看: Vesuvius v228 应用的 eqmessaging.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.volcanex.vesuvius;

import anywheresoftware.b4a.AbsObjectWrapper;
import anywheresoftware.b4a.B4AClass;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.agraham.reflection.Reflection;
import anywheresoftware.b4a.keywords.Common;
import anywheresoftware.b4a.keywords.DateTime;
import anywheresoftware.b4a.objects.B4XViewWrapper;
import anywheresoftware.b4a.objects.NotificationWrapper;
import anywheresoftware.b4a.objects.RuntimePermissions;
import anywheresoftware.b4a.objects.collections.JSONParser;
import anywheresoftware.b4a.objects.collections.List;
import anywheresoftware.b4a.objects.collections.Map;
import anywheresoftware.b4a.objects.drawable.CanvasWrapper;
import anywheresoftware.b4a.objects.streams.File;
import anywheresoftware.b4j.object.JavaObject;
import b4a.example.dateutils;
import com.google.android.gms.maps.model.PinConfig;
import com.google.firebase.components.BuildConfig;
import com.volcanex.vesuvius.b4xmainpage;
import igolub.fused.b4a.location.LocationRequestWrapper;
import igolub.fused.b4a.location.LocationResultWrapper;
import igolub.fused.b4a.location.android.location.LocationFWrapper;
import igolub.fused.b4a.location.staticmodules.GranularityWrapper;
import igolub.fused.b4a.location.staticmodules.PriorityWrapper;
import java.lang.reflect.Method;
import java.util.HashMap;

public class eqmessaging extends B4AClass.ImplB4AClass implements BA.SubDelegator {
    private static HashMap<String, Method> htSubs;
    public Common __c = null;
    public B4XViewWrapper.XUI _vvvvvvvvvvvvv3 = null;
    public keyvaluestore _vvvvvvvvvvvvvv1 = null;
    public int _vvvvvvvvvvvvvvv4 = 0;
    public String _vvvvvvvvvvvvvvvvv4 = BuildConfig.FLAVOR;
    public Map _vvvvvvvvvvvvvvvvvvv1 = null;
    public dateutils _vvvvvvvv2 = null;
    public LocationFWrapper.LocationFStatic _vvvvvvvv3 = null;
    public LocationResultWrapper.LocationResultConstants _vvvvvvvv4 = null;
    public LocationRequestWrapper.LocationRequestConstants _vvvvvvvv5 = null;
    public PriorityWrapper _vvvvvvvv6 = null;
    public GranularityWrapper _vvvvvvvv7 = null;
    public main _vvvvvvvv0 = null;
    public firebasemessaging _vvvvvvvvv1 = null;
    public ftpcamvideo _vvvvvvvvv2 = null;
    public eqdb _vvvvvvvvv3 = null;
    public location _vvvvvvvvv4 = null;
    public startatbootreceiver _vvvvvvvvv5 = null;
    public starter _vvvvvvvvv6 = null;
    public webcamload _vvvvvvvvv7 = null;
    public b4xcollections _vvvvvvvvv0 = null;
    public b4xpages _vvvvvvvvvv1 = null;
    public httputils2service _vvvvvvvvvv2 = null;
    public xuiviewsutils _vvvvvvvvvv3 = null;

    public void _b4xpage_permissionresult(String str, boolean z) throws Exception {
    }

    public void _complete(boolean z) throws Exception {
    }

    public void _jobdone(httpjob httpjobVar) throws Exception {
    }

    private void innerInitialize(BA ba) throws Exception {
        if (this.ba == null) {
            this.ba = new BA(ba, this, htSubs, "com.volcanex.vesuvius.eqmessaging");
            if (htSubs == null) {
                this.ba.loadHtSubs(getClass());
                htSubs = this.ba.htSubs;
            }
        }
        if (BA.isShellModeRuntimeCheck(this.ba)) {
            getClass().getMethod("_class_globals", eqmessaging.class).invoke(this, null);
        } else {
            this.ba.raiseEvent2((Object) null, true, "class_globals", false, new Object[0]);
        }
    }

    public Common.ResumableSubWrapper _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2() throws Exception {
        ResumableSub_CheckNotificationPermission resumableSub_CheckNotificationPermission = new ResumableSub_CheckNotificationPermission(this);
        resumableSub_CheckNotificationPermission.resume(this.ba, null);
        return AbsObjectWrapper.ConvertToWrapper(new Common.ResumableSubWrapper(), resumableSub_CheckNotificationPermission);
    }

    public static class ResumableSub_CheckNotificationPermission extends BA.ResumableSub {
        eqmessaging parent;
        Reflection _r = null;
        int _sdkversion = 0;
        JavaObject _ctxt = null;
        int _targetsdkversion = 0;
        JavaObject _notificationsmanager = null;
        boolean _notificationsenabled = false;
        RuntimePermissions _rp = null;
        String _permission = BuildConfig.FLAVOR;
        boolean _result = false;

        public ResumableSub_CheckNotificationPermission(eqmessaging eqmessagingVar) {
            this.parent = eqmessagingVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    Common common = this.parent.__c;
                    Common.ReturnFromResumableSub(this, (Object) null);
                    return;
                }
                if (i == 0) {
                    this.state = 1;
                    Reflection reflection = new Reflection();
                    this._r = reflection;
                    this._sdkversion = (int) BA.ObjectToNumber(reflection.GetStaticField("android.os.Build$VERSION", "SDK_INT"));
                } else if (i == 1) {
                    this.state = 6;
                    if (this._sdkversion < 33) {
                        this.state = 3;
                    }
                } else {
                    if (i == 3) {
                        this.state = 6;
                        Common common2 = this.parent.__c;
                        Common common3 = this.parent.__c;
                        Common.ReturnFromResumableSub(this, true);
                        return;
                    }
                    if (i == 9) {
                        this.state = 12;
                        Common common4 = this.parent.__c;
                        Common common5 = this.parent.__c;
                        Common.ReturnFromResumableSub(this, true);
                        return;
                    }
                    if (i == 15) {
                        this.state = 18;
                        Common common6 = this.parent.__c;
                        Common common7 = this.parent.__c;
                        Common.ReturnFromResumableSub(this, true);
                        return;
                    }
                    if (i == 6) {
                        this.state = 7;
                        JavaObject javaObject = new JavaObject();
                        this._ctxt = javaObject;
                        javaObject.InitializeContext(ba);
                        JavaObject javaObject2 = this._ctxt;
                        Common common8 = this.parent.__c;
                        this._targetsdkversion = (int) BA.ObjectToNumber(javaObject2.RunMethodJO("getApplicationInfo", (Object[]) Common.Null).GetField("targetSdkVersion"));
                    } else if (i == 7) {
                        this.state = 12;
                        if (this._targetsdkversion < 33) {
                            this.state = 9;
                        }
                    } else if (i == 12) {
                        this.state = 13;
                        this._notificationsmanager = new JavaObject();
                        JavaObject ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new JavaObject(), this._ctxt.RunMethod("getSystemService", new Object[]{"notification"}));
                        this._notificationsmanager = ConvertToWrapper;
                        Common common9 = this.parent.__c;
                        this._notificationsenabled = BA.ObjectToBoolean(ConvertToWrapper.RunMethod("areNotificationsEnabled", (Object[]) Common.Null));
                    } else if (i == 13) {
                        this.state = 18;
                        if (this._notificationsenabled) {
                            this.state = 15;
                        }
                    } else {
                        if (i == 18) {
                            this.state = -1;
                            RuntimePermissions runtimePermissions = new RuntimePermissions();
                            this._rp = runtimePermissions;
                            runtimePermissions.Check("android.permission.POST_NOTIFICATIONS");
                            Common common10 = this.parent.__c;
                            Common.WaitFor("b4xpage_permissionresult", ba, this, (Object) null);
                            this.state = 19;
                            return;
                        }
                        if (i == 19) {
                            this.state = -1;
                            this._permission = (String) objArr[0];
                            this._result = ((Boolean) objArr[1]).booleanValue();
                            Common common11 = this.parent.__c;
                            Common.ReturnFromResumableSub(this, Boolean.valueOf(this._result));
                            return;
                        }
                    }
                }
            }
        }
    }

    public String _class_globals() throws Exception {
        this._vvvvvvvvvvvvv3 = new B4XViewWrapper.XUI();
        this._vvvvvvvvvvvvvv1 = new keyvaluestore();
        this._vvvvvvvvvvvvvvv4 = 8;
        this._vvvvvvvvvvvvvvvvv4 = BuildConfig.FLAVOR;
        this._vvvvvvvvvvvvvvvvvvv1 = new Map();
        return BuildConfig.FLAVOR;
    }

    public Common.ResumableSubWrapper _fcm_sendeqmessage(String str, String str2) throws Exception {
        ResumableSub_FCM_SendEQMessage resumableSub_FCM_SendEQMessage = new ResumableSub_FCM_SendEQMessage(this, str, str2);
        resumableSub_FCM_SendEQMessage.resume(this.ba, null);
        return AbsObjectWrapper.ConvertToWrapper(new Common.ResumableSubWrapper(), resumableSub_FCM_SendEQMessage);
    }

    public static class ResumableSub_FCM_SendEQMessage extends BA.ResumableSub {
        String _body;
        String _title;
        eqmessaging parent;
        String _fcmserver = BuildConfig.FLAVOR;
        String _topic = BuildConfig.FLAVOR;
        String _fcmdata = BuildConfig.FLAVOR;
        httpjob _job = null;

        public ResumableSub_FCM_SendEQMessage(eqmessaging eqmessagingVar, String str, String str2) {
            this.parent = eqmessagingVar;
            this._title = str;
            this._body = str2;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            int i;
            do {
                i = this.state;
                if (i == -1) {
                    Common common = this.parent.__c;
                    Common.ReturnFromResumableSub(this, (Object) null);
                    return;
                }
                if (i == 0) {
                    this.state = -1;
                    this._fcmserver = "http://91.108.112.177:52894/fcm";
                    this._topic = BA.ObjectToString(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("fcm_topic"));
                    this._fcmdata = "&tp=" + this._topic + "&tt=" + this._title + "&bd=" + this._body;
                    httpjob httpjobVar = new httpjob();
                    this._job = httpjobVar;
                    httpjobVar._initialize(ba, BuildConfig.FLAVOR, this.parent);
                    this._job._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6(this._fcmserver, this._fcmdata);
                    Common common2 = this.parent.__c;
                    Common.WaitFor("jobdone", ba, this, this._job);
                    this.state = 1;
                    return;
                }
            } while (i != 1);
            this.state = -1;
            httpjob httpjobVar2 = (httpjob) objArr[0];
            this._job = httpjobVar2;
            httpjobVar2._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv1();
            Common common3 = this.parent.__c;
            Common.ReturnFromResumableSub(this, Boolean.valueOf(this._job._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv3));
        }
    }

    public String _initialize(BA ba) throws Exception {
        innerInitialize(ba);
        this._vvvvvvvvvvvvvv1._initialize(this.ba, B4XViewWrapper.XUI.getDefaultFolder(), "kvs_settings.dat");
        return BuildConfig.FLAVOR;
    }

    public void _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv3(b4xmainpage._aneq _aneqVar) throws Exception {
        new ResumableSub_NotifyEQ(this, _aneqVar).resume(this.ba, null);
    }

    public static class ResumableSub_NotifyEQ extends BA.ResumableSub {
        b4xmainpage._aneq _eq;
        int limit12;
        int limit28;
        eqmessaging parent;
        int step12;
        int step28;
        boolean _haspermission = false;
        boolean _qualified = false;
        long _timelimit = 0;
        List _prevnotifiedeqs = null;
        boolean _pre_changed = false;
        List _newlist = null;
        int _i = 0;
        b4xmainpage._aneq _peq = null;
        boolean _found = false;
        b4xmainpage._aneq _preveq = null;
        String _notificationtype = BuildConfig.FLAVOR;
        double _minmag4notification = 0.0d;
        String _autosoundon = BuildConfig.FLAVOR;
        String _magstr = BuildConfig.FLAVOR;
        nb6 _n6 = null;
        String _notiftitle = BuildConfig.FLAVOR;
        String _notifbody = BuildConfig.FLAVOR;
        CanvasWrapper.BitmapWrapper _nicon = null;
        NotificationWrapper _n = null;

        public ResumableSub_NotifyEQ(eqmessaging eqmessagingVar, b4xmainpage._aneq _aneqVar) {
            this.parent = eqmessagingVar;
            this._eq = _aneqVar;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                switch (this.state) {
                    case -1:
                        return;
                    case 0:
                        this.state = 1;
                        Common common = this.parent.__c;
                        Common.WaitFor("complete", ba, this, this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2());
                        this.state = 117;
                        return;
                    case 1:
                        this.state = 116;
                        if (!this._haspermission) {
                            break;
                        } else {
                            this.state = 3;
                            break;
                        }
                    case 3:
                        this.state = 4;
                        this._qualified = false;
                        Common common2 = this.parent.__c;
                        DateTime dateTime = Common.DateTime;
                        long now = DateTime.getNow();
                        Common common3 = this.parent.__c;
                        DateTime dateTime2 = Common.DateTime;
                        this._timelimit = now - 2400000;
                        List list = new List();
                        this._prevnotifiedeqs = list;
                        list.Initialize();
                        break;
                    case 4:
                        this.state = 9;
                        if (this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("prevNotifiedEQs") == null) {
                            break;
                        } else {
                            this.state = 6;
                            break;
                        }
                    case 6:
                        this.state = 9;
                        this._prevnotifiedeqs = AbsObjectWrapper.ConvertToWrapper(new List(), (java.util.List) this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("prevNotifiedEQs"));
                        break;
                    case 9:
                        this.state = 10;
                        Common common4 = this.parent.__c;
                        this._pre_changed = false;
                        break;
                    case 10:
                        this.state = 26;
                        if (this._prevnotifiedeqs.getSize() <= 0) {
                            break;
                        } else {
                            this.state = 12;
                            break;
                        }
                    case 12:
                        this.state = 13;
                        List list2 = new List();
                        this._newlist = list2;
                        list2.Initialize();
                        break;
                    case 13:
                        this.state = 22;
                        this.step12 = 1;
                        this.limit12 = this._prevnotifiedeqs.getSize() - 1;
                        this._i = 0;
                        this.state = 118;
                        break;
                    case 15:
                        this.state = 16;
                        this._peq = (b4xmainpage._aneq) this._prevnotifiedeqs.Get(this._i);
                        break;
                    case 16:
                        this.state = 21;
                        if (this._peq.timeUTC <= this._timelimit) {
                            break;
                        } else {
                            this.state = 18;
                            break;
                        }
                    case 18:
                        this.state = 21;
                        this._newlist.Add(this._peq);
                        break;
                    case 21:
                        this.state = 119;
                        break;
                    case 22:
                        this.state = 25;
                        if (this._newlist.getSize() == this._prevnotifiedeqs.getSize()) {
                            break;
                        } else {
                            this.state = 24;
                            break;
                        }
                    case 24:
                        this.state = 25;
                        this._prevnotifiedeqs = this._newlist;
                        Common common5 = this.parent.__c;
                        this._pre_changed = true;
                        break;
                    case 25:
                        this.state = 26;
                        break;
                    case 26:
                        this.state = 52;
                        if (this._eq.timeUTC > this._timelimit) {
                            this.state = 28;
                            break;
                        } else {
                            this.state = 51;
                            break;
                        }
                    case 28:
                        this.state = 29;
                        break;
                    case 29:
                        this.state = 49;
                        if (this._prevnotifiedeqs.getSize() == 0) {
                            this.state = 31;
                            break;
                        } else {
                            this.state = 33;
                            break;
                        }
                    case 31:
                        this.state = 49;
                        Common common6 = this.parent.__c;
                        this._qualified = true;
                        this._prevnotifiedeqs.Add(this._eq);
                        Common common7 = this.parent.__c;
                        this._pre_changed = true;
                        break;
                    case 33:
                        this.state = 34;
                        Common common8 = this.parent.__c;
                        this._found = false;
                        break;
                    case 34:
                        this.state = 45;
                        this.step28 = 1;
                        this.limit28 = this._prevnotifiedeqs.getSize() - 1;
                        this._i = 0;
                        this.state = 120;
                        break;
                    case 36:
                        this.state = 37;
                        this._preveq = (b4xmainpage._aneq) this._prevnotifiedeqs.Get(this._i);
                        break;
                    case PinConfig.BITMAP_LENGTH_DP:
                        this.state = 44;
                        if (this._preveq.eventID != this._eq.eventID) {
                            break;
                        } else {
                            this.state = 39;
                            break;
                        }
                    case 39:
                        this.state = 40;
                        Common common9 = this.parent.__c;
                        this._found = true;
                        break;
                    case 40:
                        this.state = 43;
                        if (this._preveq.status.equals("automatic") && this._eq.status.equals("revised")) {
                            this.state = 42;
                            break;
                        }
                        break;
                    case 42:
                        this.state = 43;
                        Common common10 = this.parent.__c;
                        this._qualified = true;
                        this._prevnotifiedeqs.RemoveAt(this._i);
                        this._prevnotifiedeqs.InsertAt(this._i, this._eq);
                        Common common11 = this.parent.__c;
                        this._pre_changed = true;
                        break;
                    case 43:
                        this.state = 44;
                        this.state = 45;
                        break;
                    case 44:
                        this.state = 121;
                        break;
                    case 45:
                        this.state = 48;
                        boolean z = this._found;
                        Common common12 = this.parent.__c;
                        if (!z) {
                            this.state = 47;
                            break;
                        } else {
                            break;
                        }
                    case 47:
                        this.state = 48;
                        Common common13 = this.parent.__c;
                        this._qualified = true;
                        this._prevnotifiedeqs.Add(this._eq);
                        Common common14 = this.parent.__c;
                        this._pre_changed = true;
                        break;
                    case 48:
                        this.state = 49;
                        break;
                    case 49:
                        this.state = 52;
                        break;
                    case 51:
                        this.state = 52;
                        Common common15 = this.parent.__c;
                        this._qualified = false;
                        break;
                    case 52:
                        this.state = 57;
                        if (!this._pre_changed) {
                            break;
                        } else {
                            this.state = 54;
                            break;
                        }
                    case 54:
                        this.state = 57;
                        this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("prevNotifiedEQs", this._prevnotifiedeqs.getObject());
                        break;
                    case 57:
                        this.state = 58;
                        break;
                    case 58:
                        this.state = 115;
                        if (!this._qualified) {
                            break;
                        } else {
                            this.state = 60;
                            break;
                        }
                    case 60:
                        this.state = 61;
                        this._notificationtype = BuildConfig.FLAVOR;
                        this._minmag4notification = BA.ObjectToNumber(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("notifSoundLimit"));
                        break;
                    case 61:
                        this.state = 76;
                        if (this._eq.status.equals("automatic")) {
                            this.state = 63;
                            break;
                        } else {
                            this.state = 65;
                            break;
                        }
                    case 63:
                        this.state = 76;
                        this._notificationtype = "new eq";
                        break;
                    case 65:
                        this.state = 66;
                        break;
                    case 66:
                        this.state = 75;
                        if (!this._eq.status.equals("revised")) {
                            break;
                        } else {
                            this.state = 68;
                            break;
                        }
                    case 68:
                        this.state = 69;
                        break;
                    case 69:
                        this.state = 74;
                        if (this._eq.magnitude >= this._minmag4notification) {
                            this.state = 71;
                            break;
                        } else {
                            this.state = 73;
                            break;
                        }
                    case 71:
                        this.state = 74;
                        this._notificationtype = "revised high magnitude";
                        break;
                    case 73:
                        this.state = 74;
                        this._notificationtype = "revised low magnitude";
                        break;
                    case 74:
                        this.state = 75;
                        break;
                    case 75:
                        this.state = 76;
                        break;
                    case 76:
                        this.state = 114;
                        if (!this._notificationtype.equals(BuildConfig.FLAVOR)) {
                            this.state = 78;
                            break;
                        } else {
                            break;
                        }
                    case 78:
                        this.state = 79;
                        eqmessaging eqmessagingVar = this.parent;
                        eqmessagingVar._vvvvvvvvvvvvvvvvv4 = BA.ObjectToString(eqmessagingVar._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("language"));
                        this.parent._set_translations();
                        this._autosoundon = BA.ObjectToString(this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("notifSoundOn"));
                        this._magstr = BuildConfig.FLAVOR;
                        break;
                    case 79:
                        this.state = 84;
                        if (this._eq.magnitude == 999.0d) {
                            this.state = 81;
                            break;
                        } else {
                            this.state = 83;
                            break;
                        }
                    case 81:
                        this.state = 84;
                        this._magstr = "nd";
                        break;
                    case 83:
                        this.state = 84;
                        Common common16 = this.parent.__c;
                        double d = this._eq.magnitude;
                        Common common17 = this.parent.__c;
                        this._magstr = Common.NumberFormat2(d, 1, 1, 1, false);
                        break;
                    case 84:
                        this.state = 85;
                        this._n6 = new nb6();
                        this._notiftitle = BuildConfig.FLAVOR;
                        this._notifbody = BuildConfig.FLAVOR;
                        Common common18 = this.parent.__c;
                        DateTime dateTime3 = Common.DateTime;
                        DateTime.setTimeFormat("HH:mm");
                        break;
                    case 85:
                        this.state = 104;
                        int switchObjectToInt = BA.switchObjectToInt(this._notificationtype, new Object[]{"new eq", "revised high magnitude", "revised low magnitude"});
                        if (switchObjectToInt == 0) {
                            this.state = 87;
                            break;
                        } else if (switchObjectToInt == 1) {
                            this.state = 101;
                            break;
                        } else if (switchObjectToInt == 2) {
                            this.state = 103;
                            break;
                        } else {
                            break;
                        }
                    case 87:
                        this.state = 88;
                        break;
                    case 88:
                        this.state = 93;
                        if (this._autosoundon.equals("yes")) {
                            long j = this._eq.timeUTC;
                            Common common19 = this.parent.__c;
                            DateTime dateTime4 = Common.DateTime;
                            long now2 = DateTime.getNow();
                            long j2 = this.parent._vvvvvvvvvvvvvvv4;
                            Common common20 = this.parent.__c;
                            DateTime dateTime5 = Common.DateTime;
                            if (j > now2 - (j2 * 60000)) {
                                this.state = 90;
                                break;
                            }
                        }
                        this.state = 92;
                        break;
                    case 90:
                        this.state = 93;
                        this._n6._initialize(ba, "nfnew", this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("New Earthquake"), "HIGH");
                        break;
                    case 92:
                        this.state = 93;
                        this._n6._initialize(ba, "nfupdated", this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Earthquake Updated"), "LOW");
                        break;
                    case 93:
                        this.state = 94;
                        this._notiftitle = this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("New Earthquake");
                        break;
                    case 94:
                        this.state = 99;
                        if (this._eq.status.equals("automatic")) {
                            this.state = 96;
                            break;
                        } else {
                            this.state = 98;
                            break;
                        }
                    case 96:
                        this.state = 99;
                        StringBuilder sb = new StringBuilder();
                        sb.append(this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Time"));
                        sb.append(" ");
                        Common common21 = this.parent.__c;
                        DateTime dateTime6 = Common.DateTime;
                        sb.append(DateTime.Time(this._eq.timeUTC));
                        sb.append(", ");
                        sb.append(this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Magnitude"));
                        sb.append(" ??, ");
                        sb.append(this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Depth"));
                        sb.append(" ??");
                        this._notifbody = sb.toString();
                        break;
                    case 98:
                        this.state = 99;
                        StringBuilder sb2 = new StringBuilder();
                        sb2.append(this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Time"));
                        sb2.append(" ");
                        Common common22 = this.parent.__c;
                        DateTime dateTime7 = Common.DateTime;
                        sb2.append(DateTime.Time(this._eq.timeUTC));
                        sb2.append(", ");
                        sb2.append(this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Magnitude"));
                        sb2.append(" ");
                        sb2.append(this._magstr);
                        sb2.append(", ");
                        sb2.append(this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Depth"));
                        sb2.append(" ");
                        sb2.append(BA.NumberToString(this._eq.depth));
                        sb2.append(" km");
                        this._notifbody = sb2.toString();
                        break;
                    case 99:
                        this.state = 104;
                        break;
                    case 101:
                        this.state = 104;
                        this._n6._initialize(ba, "nfhighmag", this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Earthquake High Magnitude"), "HIGH");
                        this._notiftitle = this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Earthquake High Magnitude");
                        StringBuilder sb3 = new StringBuilder();
                        sb3.append(this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Time"));
                        sb3.append(" ");
                        Common common23 = this.parent.__c;
                        DateTime dateTime8 = Common.DateTime;
                        sb3.append(DateTime.Time(this._eq.timeUTC));
                        sb3.append(", ");
                        sb3.append(this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Magnitude"));
                        sb3.append(" ");
                        sb3.append(this._magstr);
                        sb3.append(", ");
                        sb3.append(this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Depth"));
                        sb3.append(" ");
                        sb3.append(BA.NumberToString(this._eq.depth));
                        sb3.append(" km");
                        this._notifbody = sb3.toString();
                        break;
                    case 103:
                        this.state = 104;
                        this._n6._initialize(ba, "nfupdated", this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Earthquake Updated"), "LOW");
                        this._notiftitle = this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Earthquake Updated");
                        StringBuilder sb4 = new StringBuilder();
                        sb4.append(this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Time"));
                        sb4.append(" ");
                        Common common24 = this.parent.__c;
                        DateTime dateTime9 = Common.DateTime;
                        sb4.append(DateTime.Time(this._eq.timeUTC));
                        sb4.append(", ");
                        sb4.append(this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Magnitude"));
                        sb4.append(" ");
                        sb4.append(this._magstr);
                        sb4.append(", ");
                        sb4.append(this.parent._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6("Depth"));
                        sb4.append(" ");
                        sb4.append(BA.NumberToString(this._eq.depth));
                        sb4.append(" km");
                        this._notifbody = sb4.toString();
                        break;
                    case 104:
                        this.state = 113;
                        if (!this._n6.IsInitialized()) {
                            break;
                        } else {
                            this.state = 106;
                            break;
                        }
                    case 106:
                        this.state = 107;
                        CanvasWrapper.BitmapWrapper bitmapWrapper = new CanvasWrapper.BitmapWrapper();
                        this._nicon = bitmapWrapper;
                        Common common25 = this.parent.__c;
                        File file = Common.File;
                        bitmapWrapper.Initialize(File.getDirAssets(), "extras/vs_notif_icon_24.png");
                        this._n6._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv0(this._nicon);
                        nb6 nb6Var = this._n6;
                        Common common26 = this.parent.__c;
                        nb6Var._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(true);
                        this._n = new NotificationWrapper();
                        nb6 nb6Var2 = this._n6;
                        String str = this._notiftitle;
                        String str2 = this._notifbody;
                        main mainVar = this.parent._vvvvvvvv0;
                        NotificationWrapper _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6 = nb6Var2._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6(str, str2, BuildConfig.FLAVOR, main.getObject());
                        this._n = _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6;
                        _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6.Notify(1);
                        break;
                    case 107:
                        this.state = 112;
                        if (!this._eq.status.equals("automatic")) {
                            break;
                        } else {
                            this.state = 109;
                            break;
                        }
                    case 109:
                        this.state = 112;
                        eqmessaging eqmessagingVar2 = this.parent;
                        Common common27 = eqmessagingVar2.__c;
                        DateTime dateTime10 = Common.DateTime;
                        eqmessagingVar2._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4(DateTime.getNow(), this._eq.timeUTC);
                        break;
                    case 112:
                        this.state = 113;
                        break;
                    case 113:
                        this.state = 114;
                        break;
                    case 114:
                        this.state = 115;
                        break;
                    case 115:
                        this.state = 116;
                        break;
                    case 116:
                        this.state = -1;
                        break;
                    case 117:
                        this.state = 1;
                        this._haspermission = ((Boolean) objArr[0]).booleanValue();
                        break;
                    case 118:
                        this.state = 22;
                        int i = this.step12;
                        if ((i > 0 && this._i <= this.limit12) || (i < 0 && this._i >= this.limit12)) {
                            this.state = 15;
                            break;
                        }
                        break;
                    case 119:
                        this.state = 118;
                        this._i += this.step12;
                        break;
                    case 120:
                        this.state = 45;
                        int i2 = this.step28;
                        if ((i2 > 0 && this._i <= this.limit28) || (i2 < 0 && this._i >= this.limit28)) {
                            this.state = 36;
                            break;
                        }
                        break;
                    case 121:
                        this.state = 120;
                        this._i += this.step28;
                        break;
                }
            }
        }
    }

    public String _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv4(long j, long j2) throws Exception {
        Map map = new Map();
        map.Initialize();
        new Map().Initialize();
        if (this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("eqTransitTimes") != null) {
            Map ConvertToWrapper = AbsObjectWrapper.ConvertToWrapper(new Map(), (java.util.Map) this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("eqTransitTimes"));
            DateTime dateTime = Common.DateTime;
            long now = DateTime.getNow();
            DateTime dateTime2 = Common.DateTime;
            long j3 = now - 86400000;
            BA.IterableList Keys = ConvertToWrapper.Keys();
            int size = Keys.getSize();
            for (int i = 0; i < size; i++) {
                long ObjectToLongNumber = BA.ObjectToLongNumber(Keys.Get(i));
                if (ObjectToLongNumber > j3) {
                    map.Put(Long.valueOf(ObjectToLongNumber), ConvertToWrapper.Get(Long.valueOf(ObjectToLongNumber)));
                }
            }
        }
        map.Put(Long.valueOf(j2), Long.valueOf(j - j2));
        this._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvvv4("eqTransitTimes", map.getObject());
        return BuildConfig.FLAVOR;
    }

    public String _set_translations() throws Exception {
        this._vvvvvvvvvvvvvvvvvvv1.Initialize();
        if (!this._vvvvvvvvvvvvvvvvv4.equals("EN")) {
            int switchObjectToInt = BA.switchObjectToInt(this._vvvvvvvvvvvvvvvvv4, new Object[]{"IT", "DE"});
            if (switchObjectToInt == 0) {
                this._vvvvvvvvvvvvvvvvvvv1.Put("New Earthquake", "Nuovo Terremoto");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Earthquake Updated", "Terremoto Aggiornato");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Time", "Tempo");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Magnitude", "Magnitudo");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Depth", "Profondità");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Vesuvius", "Vesuvio");
                this._vvvvvvvvvvvvvvvvvvv1.Put("location uncertain", "posizione incerta");
                this._vvvvvvvvvvvvvvvvvvv1.Put("magnitude unknown", "grandezza sconosciuta");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Eruption Alert Level", "Livello di allerta eruzione");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Eruption Alert Level changed to", "Livello di allerta eruzione cambiato in");
                return BuildConfig.FLAVOR;
            }
            if (switchObjectToInt == 1) {
                this._vvvvvvvvvvvvvvvvvvv1.Put("New Earthquake", "Neues Erdbeben");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Earthquake Updated", "Erdbeben aktualisiert");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Time", "Zeit");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Magnitude", "Größe");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Depth", "Tiefe");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Vesuvius", "Vesuv");
                this._vvvvvvvvvvvvvvvvvvv1.Put("location uncertain", "Standort ungewiss");
                this._vvvvvvvvvvvvvvvvvvv1.Put("magnitude unknown", "Ausmaß unbekannt");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Eruption Alert Level", "Eruptionsalarmstufe");
                this._vvvvvvvvvvvvvvvvvvv1.Put("Eruption Alert Level changed to", "Eruptionsalarmstufe geändert in");
                return BuildConfig.FLAVOR;
            }
            return BuildConfig.FLAVOR;
        }
        return BuildConfig.FLAVOR;
    }

    public void _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(b4xmainpage._aneq _aneqVar, String str) throws Exception {
        new ResumableSub_TellOtherDevices(this, _aneqVar, str).resume(this.ba, null);
    }

    public static class ResumableSub_TellOtherDevices extends BA.ResumableSub {
        b4xmainpage._aneq _eq;
        String _source;
        eqmessaging parent;
        Map _fcm_m = null;
        Common.ResumableSubWrapper _rs = null;
        boolean _result = false;

        public ResumableSub_TellOtherDevices(eqmessaging eqmessagingVar, b4xmainpage._aneq _aneqVar, String str) {
            this.parent = eqmessagingVar;
            this._eq = _aneqVar;
            this._source = str;
        }

        public void resume(BA ba, Object[] objArr) throws Exception {
            while (true) {
                int i = this.state;
                if (i == -1) {
                    return;
                }
                if (i == 0) {
                    this.state = -1;
                    Map map = new Map();
                    this._fcm_m = map;
                    map.Initialize();
                    Common common = this.parent.__c;
                    Map createMap = Common.createMap(new Object[]{"id", Integer.valueOf(this._eq.eventID)});
                    this._fcm_m = createMap;
                    createMap.Put("magnitude", Double.valueOf(this._eq.magnitude));
                    this._fcm_m.Put("depth", Double.valueOf(this._eq.depth));
                    this._fcm_m.Put("latitude", Double.valueOf(this._eq.latitude));
                    this._fcm_m.Put("longitude", Double.valueOf(this._eq.longitude));
                    this._fcm_m.Put("timeutc", Long.valueOf(this._eq.timeUTC));
                    this._fcm_m.Put("status", this._eq.status);
                    this._fcm_m.Put("volcano", this._eq.volcName);
                    this._fcm_m.Put("appversion", this.parent._vvvvvvvvvvvvvv1._vvvvvvvvvvvvvvvvvvvvvvvvvvv6("appVer"));
                    this._fcm_m.Put("source", this._source);
                    this._rs = new Common.ResumableSubWrapper();
                    this._rs = this.parent._fcm_sendeqmessage("New EQ", AbsObjectWrapper.ConvertToWrapper(new JSONParser.JSONConverter(), this._fcm_m.getObject()).ToString());
                    Common common2 = this.parent.__c;
                    Common.WaitFor("complete", ba, this, this._rs);
                    this.state = 1;
                    return;
                }
                if (i == 1) {
                    this.state = -1;
                    this._result = ((Boolean) objArr[0]).booleanValue();
                }
            }
        }
    }

    public String _vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6(String str) throws Exception {
        if (this._vvvvvvvvvvvvvvvvv4.equals("EN")) {
            return str;
        }
        if (this._vvvvvvvvvvvvvvvvvvv1.Get(str) == null) {
            Common.LogImpl("813828101", "Missing translation: " + str, 0);
            return str;
        }
        return BA.ObjectToString(this._vvvvvvvvvvvvvvvvvvv1.Get(str));
    }

    public Object callSub(String str, Object obj, Object[] objArr) throws Exception {
        BA.senderHolder.set(obj);
        return BA.SubDelegator.SubNotFound;
    }
}