예제 #1
0
        public static FollowCache GetFollowData(string channel, string id)
        {
            if (!FollowData.ContainsKey(channel))
            {
                FollowData[channel] = new Dictionary <string, FollowCache>();
            }
            var dict = FollowData[channel];

            if (dict.ContainsKey(id))
            {
                return(dict[id]);
            }

            var follow = new FollowCache(TwitchApiTools.GetFollowLong(channel, id));

            dict[id] = follow;
            return(follow);
        }
예제 #2
0
        public void TestMethod1()
        {
            var how = TwitchApiTools.GetFollowLong("lilac_unicorn_", "leekcake");

            Assert.AreEqual(127, how);
        }