Example #1
0
        ///<summary>
        ///List of all events in HomeSeer. Used to enable Linq queries on events.
        ///</summary>
        ///<returns>Generic.List() of all EventData</returns>
        ///<remarks>By Moskus</remarks>
        public List <HomeSeerAPI.strEventData> Events1()
        {
            var ret       = new List <HomeSeerAPI.strEventData>();
            var allEvents = Hs.Event_Info_All().ToList();

            return(allEvents);
        }
Example #2
0
        ///<summary>
        ///List of all events in HomeSeer. Used to enable Linq queries on events.
        ///</summary>
        ///<returns>Generic.List() of all EventData</returns>
        ///<remarks>By Moskus</remarks>
        public List <HomeSeerAPI.strEventData> Events()
        {
            var ret = new List <HomeSeerAPI.strEventData>();

            foreach (HomeSeerAPI.strEventData eventData in Hs.Event_Info_All())
            {
                ret.Add(eventData);
            }
            return(ret);
        }