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; }
public void getEventsFromDatafeed() { List <DatafeedEvent> events = new List <DatafeedEvent>(); while (!stopLoop) { events = RunAsync(botClient.getConfig(), datafeed, datafeedClient).GetAwaiter().GetResult(); if (events != null) { handleEvents(events); } } }