APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Web Browser Beta Pro-Fastest Browser
版本号:2.5.7
包名称:com.webbrowserbeta

MD5 校验值:195005882709ac21163d7a1b97aeec73

反编译源代码说明

FirebaseCloudMessaging.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package com.atomdeveloper.FirebaseCloudMessaging;

import android.app.Activity;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Context;
import android.content.SharedPreferences;
import android.media.AudioAttributes;
import android.net.Uri;
import android.os.Build;
import android.util.Log;
import android.widget.Toast;
import com.google.appinventor.components.annotations.DesignerComponent;
import com.google.appinventor.components.annotations.SimpleEvent;
import com.google.appinventor.components.annotations.SimpleFunction;
import com.google.appinventor.components.annotations.SimpleObject;
import com.google.appinventor.components.annotations.SimpleProperty;
import com.google.appinventor.components.annotations.UsesBroadcastReceivers;
import com.google.appinventor.components.annotations.UsesLibraries;
import com.google.appinventor.components.annotations.UsesPermissions;
import com.google.appinventor.components.annotations.UsesServices;
import com.google.appinventor.components.annotations.androidmanifest.ActionElement;
import com.google.appinventor.components.annotations.androidmanifest.IntentFilterElement;
import com.google.appinventor.components.annotations.androidmanifest.MetaDataElement;
import com.google.appinventor.components.annotations.androidmanifest.ReceiverElement;
import com.google.appinventor.components.annotations.androidmanifest.ServiceElement;
import com.google.appinventor.components.common.ComponentCategory;
import com.google.appinventor.components.common.PropertyTypeConstants;
import com.google.appinventor.components.common.YaVersion;
import com.google.appinventor.components.runtime.AndroidNonvisibleComponent;
import com.google.appinventor.components.runtime.ComponentContainer;
import com.google.appinventor.components.runtime.EventDispatcher;
import com.google.appinventor.components.runtime.util.YailDictionary;
import com.google.appinventor.components.runtime.util.YailList;
import com.google.firebase.FirebaseApp;
import com.google.firebase.FirebaseOptions;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.ServiceStarter;
import com.google.firebase.messaging.Constants;
import com.google.firebase.messaging.FirebaseMessaging;
import com.microsoft.appcenter.ingestion.models.CommonProperties;
import java.io.File;
import java.util.HashMap;
import kawa.lang.SyntaxForms;
import org.jose4j.jwx.HeaderParameterNames;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;

@SimpleObject(external = SyntaxForms.DEBUGGING)
@UsesBroadcastReceivers(receivers = {@ReceiverElement(exported = "true", intentFilters = {@IntentFilterElement(actionElements = {@ActionElement(name = "com.google.android.c2dm.intent.RECEIVE")})}, name = "com.google.firebase.iid.FirebaseInstanceIdReceiver", permission = "com.google.android.c2dm.permission.SEND"), @ReceiverElement(name = "com.atomdeveloper.FirebaseCloudMessaging.MessageStyleNotification$InputReceiver"), @ReceiverElement(name = "com.atomdeveloper.FirebaseCloudMessaging.PushNotification$PushReceiver")})
@UsesPermissions(permissionNames = "com.google.android.c2dm.permission.RECEIVE,android.permission.WAKE_LOCK,android.permission.ACCESS_NETWORK_STATE,android.permission.INTERNET")
@DesignerComponent(category = ComponentCategory.EXTENSION, description = "Made By Atom Developer, Telegram - <a href=\"https://t.me/atomdeveloper\">AtomDeveloper</a> <br>Website - <a href=\"https://atomdeveloper.com\">Atomdeveloper.com</a>", iconName = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAARdSURBVEhLvZZtbJNVFMf/bde9dYwyMwfyYoBhNEQhmg1lmMW3GRMTiXwQIsmiftDED+o+YGLURccwEid+kYSJJkacQBQDxDjHi+iUTIbL3Avgupdudh2ssK592rVdX67n3Odua7vOdUb5Jc+e8z/33J0+z73n3McgCNxEjOp+01jQEzrDbrRN2OGge1hEUZiRj/XZy3F3zgoVMT9pJawb/R5NWhdKc9egJHc1lpsLYDYYMRrR0BV04Gffnygy56O6aCuWmq1q1hxwwrn41n1RPGx7T1zw9SnP3IxH/OK5wXpR5WhQntTMmZAn7rl6Qqn0+c3fJx6y7VFqNikTVjm+FIfdLdKuHv5G3tPhbRV7I+wTZT3vSjuZWbv0uKcNBaY8PGPdJHVxdhEaPR3S/icavR0ozrpV2gUZFnyx6iVst++XOgGVeBpes2Qq7fUiGA2LT13nxItDn4mn+vbR9ZG0D5KPxyrtB1T0DLuvHhfN2hWldBJ26Qe0G8std6LEslp5dF7+63Oc8nXDYsxCpsEEI+1QJiZimKTy8MdCeDRvPfavrJT+eCr69qJp7S6lkgq/yduZkEyLBHHvlbdwIdCPIqq5RaZsZBnNVBImebHNPh5rpRiO1aJBNVtnE5WSPXRdqbiEw5Nu3G8pVkqnrLcGWSYzIvQkQRFW3tnwGMdw7BZbjfLqbLOW4KTWplRcwraAXRb1FC8MHUSmMQPBWBh1y3Zg55LNCMQm1egM7Ntp3Yy623bIWDPNeX7oEzUKbMy5He0TQ0rFJXSEx7CCOggzGLyOZn8PcgxmqaOIIRKLSTsV/HRRuhie86vfhsG41xiKRZQVl5AnmAwGaR/ynJdrYyDN910jR3DY04IcY6Ycj4d9PMYxU3Py6H7IfV5FJDKdkBuxK+KTdpO3S+68MdJ8hUVEvropnXzxGMdMaZ77A/XeafTnkEyXRWfAgTO09V8tfBwd9M6NHMWBwkBlYKASSOdQ0WP4L/Uw3JO7ijbjGOpvnMM7y56WYwmFv7V/n7IS4cL+txxwnRW/aD1KJbW2ogwrPJEJpXSuhT10NHXicsAp7Q9HG8krcFa7xD8WrRP96KK30xcahZNKK5mvx1tRlrdOqbg1ZPg8e83ZoBTwxvBRBMQkcqnDjEV9qHM1yrf8lbsFS+nHve48gs7gsOy/R8kXonWsHjmmTyZOa914cvFGpXRmHcBVww14dskDuI9qkrf7T9pluR7OiEdueW7Mt1Bz/9F3CY9QO+OSGae3QktN/wwoX3SXXHPmQdtuNK97U9rTcMJkym21wk0H6hT+aFBZ6VPR+74YmXQrNUPKhMyWnhoxEHQptTAqeveK3/0DSiUyZ0Jm+8DHonYBp/4Zb7f8odSXlWc2835ENdMHUu21Eyi1rMG2xaXYkLNSjehw0/9Oa8ex8Yt4In8DXimsUCOpSeurjRkIuXDS244/AoPyE5HhiWvplH+MNk9Z3h3SNx9pJ/yvSKjD/x/gb09M8OMwXuanAAAAAElFTkSuQmCC", nonVisible = SyntaxForms.DEBUGGING, version = 1)
@UsesLibraries(libraries = "fcm.jar,json.jar")
@UsesServices(services = {@ServiceElement(intentFilters = {@IntentFilterElement(actionElements = {@ActionElement(name = ServiceStarter.ACTION_MESSAGING_EVENT)})}, name = "com.atomdeveloper.FirebaseCloudMessaging.MyFirebaseMessagingService"), @ServiceElement(directBootAware = "true", exported = "false", intentFilters = {@IntentFilterElement(actionElements = {@ActionElement(name = ServiceStarter.ACTION_MESSAGING_EVENT)}, priority = "-500")}, name = "com.google.firebase.messaging.FirebaseMessagingService"), @ServiceElement(exported = "false", metaDataElements = {@MetaDataElement(name = "com.google.firebase.components:com.google.firebase.iid.Registrar", value = "com.google.firebase.components.ComponentRegistrar"), @MetaDataElement(name = "com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingRegistrar", value = "com.google.firebase.components.ComponentRegistrar"), @MetaDataElement(name = "com.google.firebase.components:com.google.firebase.datatransport.TransportRegistrar", value = "com.google.firebase.components.ComponentRegistrar"), @MetaDataElement(name = "com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar", value = "com.google.firebase.components.ComponentRegistrar"), @MetaDataElement(name = "com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsRegistrar", value = "com.google.firebase.components.ComponentRegistrar"), @MetaDataElement(name = "com.google.firebase.components:com.google.firebase.dynamicloading.DynamicLoadingRegistrar", value = "com.google.firebase.components.ComponentRegistrar")}, name = "com.google.firebase.components.ComponentDiscoveryService")})
public final class FirebaseCloudMessaging extends AndroidNonvisibleComponent {
    private static FirebaseCloudMessaging XUcGPyQKnjyJXL8S6YW8;

    private Activity f2XUcGPyQKnjyJXL8S6YW8;

    private Context f3XUcGPyQKnjyJXL8S6YW8;

    public FirebaseCloudMessaging(ComponentContainer componentContainer) {
        super(componentContainer.$form());
        this.f3XUcGPyQKnjyJXL8S6YW8 = componentContainer.$context();
        this.f2XUcGPyQKnjyJXL8S6YW8 = componentContainer.$context();
        XUcGPyQKnjyJXL8S6YW8 = this;
        if (this.f3XUcGPyQKnjyJXL8S6YW8.getPackageName().equalsIgnoreCase(YaVersion.ACCEPTABLE_COMPANION_PACKAGE) || this.f3XUcGPyQKnjyJXL8S6YW8.getPackageName().equalsIgnoreCase("edu.mit.appinventor.aicompanion3")) {
            return;
        }
        if (XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("BackgroundTasks")) {
            Toast.makeText(this.f3XUcGPyQKnjyJXL8S6YW8, "Not Verified", 1).show();
            this.f2XUcGPyQKnjyJXL8S6YW8.finish();
            System.exit(0);
            return;
        }
        if (XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("coc_fun9452") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("sst8602615119") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("ebizzden2121") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("alertapuerta") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("acyosirket2121") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("vedprakashgoswami1259") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("hg971495") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("awesomeosep") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("david01042002") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("aleksandershurtado") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("cc_project_appdevelopment") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("franklinlopezs") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("iagovinicius_12328") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("joaquimlopes_seei") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("meatomdeveloper") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("nishilbalyaya123") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("aakashghodke7") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("ak_workingplace") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("rm553220") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("saddam_horti786") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("consoleheretohelp") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("johncharlie1272") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("help_cttricks") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("c_dimiropoulos") || XUcGPyQKnjyJXL8S6YW8().equalsIgnoreCase("andréferreira481")) {
            Log.e(FirebaseMessaging.INSTANCE_ID_SCOPE, "verified");
        }
    }

    @SimpleEvent
    public static void ErrorOccurred(String str) {
        EventDispatcher.dispatchEvent(XUcGPyQKnjyJXL8S6YW8, "ErrorOccurred", str);
    }

    @SimpleEvent
    public static void GotMessage(String str) {
        EventDispatcher.dispatchEvent(XUcGPyQKnjyJXL8S6YW8, "GotMessage", str);
    }

    @SimpleEvent
    public static void GotUserToken(String str) {
        EventDispatcher.dispatchEvent(XUcGPyQKnjyJXL8S6YW8, "GotUserToken", str);
    }

    @SimpleEvent
    public static void NotificationSentResult(int i, String str) {
        EventDispatcher.dispatchEvent(XUcGPyQKnjyJXL8S6YW8, "NotificationSentResult", Integer.valueOf(i), str);
    }

    private String XUcGPyQKnjyJXL8S6YW8() {
        return this.f2XUcGPyQKnjyJXL8S6YW8.getClass().getName().split("\\.")[2];
    }

    @SimpleProperty
    public final void ActivityName(String str) {
        SharedPreferences.Editor edit = this.f3XUcGPyQKnjyJXL8S6YW8.getSharedPreferences("hfjiwjvwnvnjwj", 0).edit();
        edit.putString("ActivityName", str);
        edit.commit();
    }

    @SimpleFunction
    public final void ClearNotification(int i) {
        MessageStyleNotification.getInstance(this.f3XUcGPyQKnjyJXL8S6YW8).clearNotification(i);
    }

    @SimpleFunction
    public final void GetUserToken() {
        FirebaseInstanceId.getInstance().getInstanceId().addOnCompleteListener(new XUcGPyQKnjyJXL8S6YW8());
    }

    @SimpleEvent
    public final void GotReply(String str, String str2, int i, long j) {
        String[] split = this.f3XUcGPyQKnjyJXL8S6YW8.getSharedPreferences("hfjiwjvwnvnjwj", 0).getString("notificationData", "").split(",,##,,split,,##,,");
        EventDispatcher.dispatchEvent(this, "GotReply", split[0], split[2], split[1], split[4]);
    }

    @SimpleFunction
    public final void Init(String str) {
        if (str.equals("reply_callback")) {
            GotReply("", "", 0, 0L);
        } else if (str.equals("notificationClick")) {
            MessageNotificationClicked("", 0);
        } else if (str.equals("pushNotificationClick")) {
            SimpleNotificationClicked(0, "", "");
        }
    }

    @SimpleFunction
    public final void Initialize(String str, String str2, String str3, String str4) {
        try {
            FirebaseApp.getInstance();
        } catch (IllegalStateException e) {
            FirebaseApp.initializeApp(this.f3XUcGPyQKnjyJXL8S6YW8, new FirebaseOptions.Builder().setApiKey(str).setProjectId(str2).setApplicationId(str3).setGcmSenderId(str4).build());
            SharedPreferences.Editor edit = this.f3XUcGPyQKnjyJXL8S6YW8.getSharedPreferences("hfjiwjvwnvnjwj", 0).edit();
            edit.putString(Constants.ScionAnalytics.MessageType.DATA_MESSAGE, str + "," + str2 + "," + str3 + "," + str4 + ",_,_");
            edit.commit();
        }
    }

    @SimpleEvent
    public final void MessageNotificationClicked(String str, int i) {
        String[] split = this.f3XUcGPyQKnjyJXL8S6YW8.getSharedPreferences("hfjiwjvwnvnjwj", 0).getString("notificationData1", "").split(",,##,,split,,##,,");
        EventDispatcher.dispatchEvent(this, "MessageNotificationClicked", split[0], split[1]);
    }

    @SimpleFunction
    public final void SendMessage(String str, String str2, YailList yailList, YailDictionary yailDictionary, String str3) {
        sendData(str, str2, yailList, yailDictionary, str3);
    }

    @SimpleFunction
    public final void SendMessageNotification(String str, String str2, String str3, int i, long j, String str4, String str5, String str6, YailList yailList, String str7) {
        sendMessageNotification(str, str2, str3, i, j, str4, "", str5, str6, yailList, str7);
    }

    @SimpleFunction
    public final void SendNotification(String str, String str2, String str3, String str4, String str5, String str6, YailList yailList, YailDictionary yailDictionary, String str7) {
        sendNotification(str, str2, str3, str4, str5, str6, yailList, yailDictionary, str7);
    }

    @SimpleFunction
    public final void SendPushNotification(String str, String str2, int i, String str3, String str4, String str5, String str6, YailList yailList, String str7) {
        sendPushNotification(str, str2, i, str3, str4, str5, str6, yailList, str7);
    }

    @SimpleEvent
    public final void SimpleNotificationClicked(int i, String str, String str2) {
        String[] split = this.f3XUcGPyQKnjyJXL8S6YW8.getSharedPreferences("hfjiwjvwnvnjwj", 0).getString("pushNotificationData", "").split(",,##,,split,,##,,");
        EventDispatcher.dispatchEvent(this, "SimpleNotificationClicked", split[0], split[1], split[2]);
    }

    @SimpleProperty
    public final void SmallIcon(String str) {
        SharedPreferences.Editor edit = this.f3XUcGPyQKnjyJXL8S6YW8.getSharedPreferences("hfjiwjvwnvnjwj", 0).edit();
        edit.putString("smallIcon", str);
        edit.commit();
    }

    @SimpleProperty
    public final void Sound(String str) {
        SharedPreferences.Editor edit = this.f3XUcGPyQKnjyJXL8S6YW8.getSharedPreferences("hfjiwjvwnvnjwj", 0).edit();
        edit.putString("sound", str);
        edit.commit();
        if (Build.VERSION.SDK_INT >= 26) {
            NotificationManager notificationManager = (NotificationManager) this.f3XUcGPyQKnjyJXL8S6YW8.getSystemService("notification");
            NotificationChannel notificationChannel = new NotificationChannel("FCMNotification", "FCMNotification", 5);
            notificationChannel.setSound(Uri.fromFile(new File(str)), new AudioAttributes.Builder().setUsage(5).setContentType(1).build());
            notificationManager.createNotificationChannel(notificationChannel);
        }
    }

    @SimpleFunction
    public final void SubscribeToTopic(String str) {
        FirebaseMessaging.getInstance().subscribeToTopic(str).addOnCompleteListener(new JNJVXacHY3stHEKVFFym(this, str));
    }

    @SimpleEvent
    public final void SubscribeToTopicResult(String str, boolean z) {
        EventDispatcher.dispatchEvent(this, "SubscribedToTopic", str, Boolean.valueOf(z));
    }

    @SimpleFunction
    public final void UnsubscribeFromTopic(String str) {
        FirebaseMessaging.getInstance().unsubscribeFromTopic(str).addOnCompleteListener(new uNQQJ9ES5KTHNYTbjrGI(this, str));
    }

    @SimpleEvent
    public final void UnsubscribeToTopicResult(String str, boolean z) {
        EventDispatcher.dispatchEvent(this, "UnsubscribeToTopicResult", str, Boolean.valueOf(z));
    }

    public final void createPostRequest(String str, String str2) {
        new cXicbtXyRnl22YVaSSsw(this, str2, str).start();
    }

    public final void sendData(String str, String str2, YailList yailList, YailDictionary yailDictionary, String str3) {
        try {
            String str4 = "";
            JSONObject jSONObject = new JSONObject();
            JSONArray jSONArray = new JSONArray();
            if (yailList.size() == 1) {
                str4 = yailList.getString(0);
            } else {
                for (String str5 : yailList.toStringArray()) {
                    jSONArray.add(str5);
                }
            }
            HashMap hashMap = new HashMap();
            for (Object obj : yailDictionary.keySet()) {
                hashMap.put(obj.toString(), yailDictionary.get(obj).toString());
            }
            jSONObject.put(Constants.ScionAnalytics.MessageType.DATA_MESSAGE, new JSONObject(hashMap));
            jSONObject.put(Constants.FirelogAnalytics.PARAM_PRIORITY, str2);
            jSONObject.put("condition", str);
            if (str4.equals("")) {
                jSONObject.put("registration_ids", jSONArray);
            } else {
                jSONObject.put("to", str4);
            }
            createPostRequest(jSONObject.toJSONString(), str3);
        } catch (Exception e) {
            ErrorOccurred(e.getMessage() + e.toString());
        }
    }

    public final void sendMessageNotification(String str, String str2, String str3, int i, long j, String str4, String str5, String str6, String str7, YailList yailList, String str8) {
        try {
            String str9 = "";
            JSONObject jSONObject = new JSONObject();
            JSONArray jSONArray = new JSONArray();
            if (yailList.size() == 1) {
                str9 = yailList.getString(0);
            } else {
                for (String str10 : yailList.toStringArray()) {
                    jSONArray.add(str10);
                }
            }
            HashMap hashMap = new HashMap();
            hashMap.put("message-notification", "true");
            hashMap.put(CommonProperties.ID, String.valueOf(i));
            hashMap.put("group", str2);
            hashMap.put("timestamp", String.valueOf(j));
            hashMap.put("message", str);
            hashMap.put("sender", str3);
            hashMap.put(PropertyTypeConstants.PROPERTY_TYPE_COLOR, str4);
            hashMap.put("largeIcon", str5);
            jSONObject.put(Constants.ScionAnalytics.MessageType.DATA_MESSAGE, new JSONObject(hashMap));
            jSONObject.put(Constants.FirelogAnalytics.PARAM_PRIORITY, str7);
            jSONObject.put("condition", str6);
            if (str9.equals("")) {
                jSONObject.put("registration_ids", jSONArray);
            } else {
                jSONObject.put("to", str9);
            }
            createPostRequest(jSONObject.toJSONString(), str8);
        } catch (Exception e) {
            ErrorOccurred(e.getMessage() + e.toString());
        }
    }

    public final void sendNotification(String str, String str2, String str3, String str4, String str5, String str6, YailList yailList, YailDictionary yailDictionary, String str7) {
        try {
            String str8 = "";
            JSONObject jSONObject = new JSONObject();
            JSONArray jSONArray = new JSONArray();
            if (yailList.size() == 1) {
                str8 = yailList.getString(0);
            } else {
                for (String str9 : yailList.toStringArray()) {
                    jSONArray.add(str9);
                }
            }
            HashMap hashMap = new HashMap();
            for (Object obj : yailDictionary.keySet()) {
                hashMap.put(obj.toString(), yailDictionary.get(obj).toString());
            }
            JSONObject jSONObject2 = new JSONObject(hashMap);
            JSONObject jSONObject3 = new JSONObject();
            jSONObject3.put("title", str);
            jSONObject3.put("body", str2);
            jSONObject3.put(PropertyTypeConstants.PROPERTY_TYPE_COLOR, str3);
            jSONObject3.put(HeaderParameterNames.AUTHENTICATION_TAG, str4);
            jSONObject.put("notification", jSONObject3);
            jSONObject.put(Constants.ScionAnalytics.MessageType.DATA_MESSAGE, jSONObject2);
            jSONObject.put(Constants.FirelogAnalytics.PARAM_PRIORITY, str6);
            jSONObject.put("condition", str5);
            if (str8.equals("")) {
                jSONObject.put("registration_ids", jSONArray);
            } else {
                jSONObject.put("to", str8);
            }
            createPostRequest(jSONObject.toJSONString(), str7);
        } catch (Exception e) {
            ErrorOccurred(e.getMessage() + e.toString());
        }
    }

    public final void sendPushNotification(String str, String str2, int i, String str3, String str4, String str5, String str6, YailList yailList, String str7) {
        try {
            String str8 = "";
            JSONObject jSONObject = new JSONObject();
            JSONArray jSONArray = new JSONArray();
            if (yailList.size() == 1) {
                str8 = yailList.getString(0);
            } else {
                for (String str9 : yailList.toStringArray()) {
                    jSONArray.add(str9);
                }
            }
            HashMap hashMap = new HashMap();
            hashMap.put("push-notification", "true");
            hashMap.put(CommonProperties.ID, String.valueOf(i));
            hashMap.put("text", str2);
            hashMap.put("title", str);
            hashMap.put(PropertyTypeConstants.PROPERTY_TYPE_COLOR, str3);
            hashMap.put("largeIcon", str4);
            jSONObject.put(Constants.ScionAnalytics.MessageType.DATA_MESSAGE, new JSONObject(hashMap));
            jSONObject.put(Constants.FirelogAnalytics.PARAM_PRIORITY, str6);
            jSONObject.put("condition", str5);
            if (str8.equals("")) {
                jSONObject.put("registration_ids", jSONArray);
            } else {
                jSONObject.put("to", str8);
            }
            createPostRequest(jSONObject.toJSONString(), str7);
        } catch (Exception e) {
            ErrorOccurred(e.getMessage() + e.toString());
        }
    }
}