Ejemplo n.º 1
0
        /// <summary>
        /// Get list enumerations all
        /// </summary>
        private static IEnumerable <TwitterList> GetListsAll(this CredentialProvider provider, string partialUri, IEnumerable <KeyValuePair <string, string> > para)
        {
            long n_cursor = -1;
            long c_cursor = -1;
            long p;

            while (n_cursor != 0)
            {
                var lists = provider.GetLists(partialUri, para, c_cursor, out p, out n_cursor);
                if (lists != null)
                {
                    foreach (var u in lists)
                    {
                        yield return(u);
                    }
                }
                c_cursor = n_cursor;
            }
        }