public RateLimitsWindow(MainWindow mainWin)
        {
            InitializeComponent();

            mainWindow = mainWin;

            api = new TwitterAPI();
        }
예제 #2
0
        public DataFetcher(MainWindow mainWin)
        {
            this.mainWin = mainWin;

            actions = new Dictionary <string, Func <string, long, JObject> >();

            api = new TwitterAPI();

            actions["friends"]   = (sn, c) => api.GetFriends(sn, c);
            actions["followers"] = (sn, c) => api.GetFollowers(sn, c);
        }