Пример #1
0
        public bool ApolloRepoertEvent(string eventName, List <KeyValuePair <string, string> > events, bool isReal)
        {
            if (eventName == null)
            {
                return(false);
            }
            string text = string.Empty;

            if (events != null)
            {
                for (int i = 0; i < events.get_Count(); i++)
                {
                    KeyValuePair <string, string> keyValuePair = events.get_Item(i);
                    string text2 = text;
                    text = string.Concat(new string[]
                    {
                        text2,
                        keyValuePair.get_Key().ToString(),
                        ":",
                        keyValuePair.get_Value().ToString(),
                        ","
                    });
                }
            }
            ApolloReportService.ApolloReportEvent(base.ObjectId, eventName, text, isReal);
            return(true);
        }
        public bool ApolloRepoertEvent(string eventName, List <KeyValuePair <string, string> > events, bool isReal)
        {
            if (eventName == null)
            {
                return(false);
            }
            string text = string.Empty;

            if (events != null)
            {
                for (int i = 0; i < events.get_Count(); i++)
                {
                    KeyValuePair <string, string> keyValuePair = events.get_Item(i);
                    if (keyValuePair.get_Key() == null)
                    {
                        ADebug.LogError(string.Format("ApolloReportService e.Key null:eventName{0}", eventName));
                    }
                    else
                    {
                        if (keyValuePair.get_Value() == null)
                        {
                            keyValuePair = new KeyValuePair <string, string>(keyValuePair.get_Key(), string.Empty);
                            ADebug.LogError(string.Format("ApolloReportService e.Value null:eventName{0}", eventName));
                        }
                        string text2 = text;
                        text = string.Concat(new string[]
                        {
                            text2,
                            keyValuePair.get_Key(),
                            ":",
                            keyValuePair.get_Value(),
                            ","
                        });
                    }
                }
            }
            ApolloReportService.ApolloReportEvent(base.ObjectId, eventName, text, isReal);
            return(true);
        }
 public void ApolloReportInit(bool rdm = true, bool mta = true)
 {
     ApolloReportService.ApolloReportInit(base.ObjectId, rdm, mta);
 }
 public void ApolloEnableCrashReport(bool rdm, bool mta)
 {
     ApolloReportService.ApolloEnableCrashReport(base.ObjectId, rdm, mta);
 }