public void Fetch(AggregationHandler handler, bool localOnly)
        {
            m_AggregationHandler = handler;
            if (!string.IsNullOrEmpty(m_RawDataPath))
            {
                EditorPrefs.SetString(k_UrlKey, m_RawDataPath);
                DateTime start, end;
                try
                {
                    start = DateTime.Parse(m_StartDate);
                }
                catch
                {
                    throw new Exception("The start date is not properly formatted. Correct format is YYYY-MM-DD.");
                }
                try
                {
                    end = DateTime.Parse(m_EndDate);
                }
                catch
                {
                    throw new Exception("The end date is not properly formatted. Correct format is YYYY-MM-DD.");
                }

                m_RawEventClient.Fetch(m_RawDataPath, localOnly, new UnityAnalyticsEventType[] { UnityAnalyticsEventType.custom }, start, end, rawFetchHandler);
            }
        }
        public void Fetch(AggregationHandler handler, bool localOnly, bool preProcessed = false)
        {
            m_AggregationHandler = handler;

            EditorPrefs.SetString(k_UrlKey, m_RawDataPath);
            DateTime start, end;

            try
            {
                start = DateTime.Parse(m_StartDate).ToUniversalTime();
            }
            catch
            {
                throw new Exception("The start date is not properly formatted. Correct format is YYYY-MM-DD.");
            }
            try
            {
                // Add one day to include the whole of that day
                end = DateTime.Parse(m_EndDate).ToUniversalTime().Add(new TimeSpan(24, 0, 0));
            }
            catch
            {
                throw new Exception("The end date is not properly formatted. Correct format is YYYY-MM-DD.");
            }

            RawDataClient.GetInstance().m_DataPath = m_DataPath;
            var fileList = RawDataClient.GetInstance().GetFiles(new UnityAnalyticsEventType[] { UnityAnalyticsEventType.custom }, start, end);

            ProcessAggregation(fileList);
        }
        public void Fetch(AggregationHandler handler, bool localOnly)
        {
            m_AggregationHandler = handler;
            if (!string.IsNullOrEmpty(m_RawDataPath))
            {
                EditorPrefs.SetString(k_UrlKey, m_RawDataPath);
                DateTime start, end;
                try
                {
                    start = DateTime.Parse(m_StartDate);
                }
                catch
                {
                    throw new Exception("The start date is not properly formatted. Correct format is YYYY-MM-DD.");
                }
                try
                {
                    end = DateTime.Parse(m_EndDate);
                }
                catch
                {
                    throw new Exception("The end date is not properly formatted. Correct format is YYYY-MM-DD.");
                }

                m_RawEventClient.Fetch(m_RawDataPath, localOnly, new UnityAnalyticsEventType[]{ UnityAnalyticsEventType.custom }, start, end, rawFetchHandler);
            }
        }