Example #1
0
 public DatafeedEventsService(SymBotClient client)
 {
     this.botClient      = client;
     roomListeners       = new List <RoomListener>();
     IMListeners         = new List <IMListener>();
     connectionListeners = new List <ConnectionListener>();
     datafeedClient      = new DatafeedClient();
     datafeed            = datafeedClient.createDatafeed(client.getConfig());
     datafeedId          = datafeed.datafeedID;
 }
Example #2
0
        public void getEventsFromDatafeed()
        {
            List <DatafeedEvent> events = new List <DatafeedEvent>();

            while (!stopLoop)
            {
                events = RunAsync(botClient.getConfig(), datafeed, datafeedClient).GetAwaiter().GetResult();
                if (events != null)
                {
                    handleEvents(events);
                }
            }
        }