public AggregationInspector(RawEventClient client, HeatmapAggregator aggregator)
        {
            m_Aggregator     = aggregator;
            m_RawEventClient = client;

            // Restore cached paths
            m_RawDataPath = EditorPrefs.GetString(k_UrlKey);

            // Set dates based on today (should this be cached?)
            m_EndDate   = String.Format("{0:yyyy-MM-dd}", DateTime.Now);
            m_StartDate = String.Format("{0:yyyy-MM-dd}", DateTime.Now.Subtract(new TimeSpan(5, 0, 0, 0)));

            // Restore other options
            m_Space          = EditorPrefs.GetFloat(k_SpaceKey) == 0 ? k_DefaultSpace : EditorPrefs.GetFloat(k_SpaceKey);
            m_Time           = EditorPrefs.GetFloat(k_KeyToTime) == 0 ? k_DefaultTime : EditorPrefs.GetFloat(k_KeyToTime);
            m_Angle          = EditorPrefs.GetFloat(k_AngleKey) == 0 ? k_DefaultAngle : EditorPrefs.GetFloat(k_AngleKey);
            m_AggregateTime  = EditorPrefs.GetBool(k_AggregateTimeKey);
            m_AggregateAngle = EditorPrefs.GetBool(k_AggregateAngleKey);

            // Restore list of events
            string loadedEvents = EditorPrefs.GetString(k_EventsKey);

            string[] eventsList;
            if (string.IsNullOrEmpty(loadedEvents))
            {
                eventsList = new string[] { };
            }
            else
            {
                eventsList = loadedEvents.Split('|');
            }
            m_Events = new List <string>(eventsList);
        }
        public AggregationInspector(RawEventClient client, HeatmapAggregator aggregator)
        {
            m_Aggregator = aggregator;
            m_RawEventClient = client;

            // Restore cached paths
            m_RawDataPath = EditorPrefs.GetString(k_UrlKey);

            // Set dates based on today (should this be cached?)
            m_EndDate = String.Format("{0:yyyy-MM-dd}", DateTime.Now);
            m_StartDate = String.Format("{0:yyyy-MM-dd}", DateTime.Now.Subtract(new TimeSpan(5, 0, 0, 0)));

            // Restore other options
            m_Space = EditorPrefs.GetFloat(k_SpaceKey) == 0 ? k_DefaultSpace : EditorPrefs.GetFloat(k_SpaceKey);
            m_Time = EditorPrefs.GetFloat(k_KeyToTime) == 0 ? k_DefaultTime : EditorPrefs.GetFloat(k_KeyToTime);
            m_Angle = EditorPrefs.GetFloat(k_AngleKey) == 0 ? k_DefaultAngle : EditorPrefs.GetFloat(k_AngleKey);
            m_AggregateTime = EditorPrefs.GetBool(k_AggregateTimeKey);
            m_AggregateAngle = EditorPrefs.GetBool(k_AggregateAngleKey);

            // Restore list of events
            string loadedEvents = EditorPrefs.GetString(k_EventsKey);
            string[] eventsList;
            if (string.IsNullOrEmpty(loadedEvents))
            {
                eventsList = new string[]{ };
            }
            else
            {
                eventsList = loadedEvents.Split('|');
            }
            m_Events = new List<string>(eventsList);
        }
 public static AggregationInspector Init(RawEventClient client, HeatmapAggregator aggregator)
 {
     return(new AggregationInspector(client, aggregator));
 }
 public static AggregationInspector Init(RawEventClient client, HeatmapAggregator aggregator)
 {
     return new AggregationInspector(client, aggregator);
 }