public static List <string> GetAllfollowList()
        {
            List <string> list       = new List <string>();
            int           result     = 0x2710;
            string        nextUserId = "";
            AlipayMobilePublicFollowListResponse followList = null;

            while (result == 0x2710)
            {
                followList = GetfollowList(nextUserId);
                if (((followList != null) && !followList.IsError) && ((followList.Data != null) && int.TryParse(followList.Count, out result)))
                {
                    if (followList.Data.UserIdList != null)
                    {
                        nextUserId = followList.Data.UserIdList[0];
                        foreach (string str2 in followList.Data.UserIdList)
                        {
                            list.Add(str2);
                        }
                    }
                }
                else
                {
                    result = 0;
                }
            }
            return(list);
        }
Exemple #2
0
        public static System.Collections.Generic.List <string> GetAllfollowList()
        {
            System.Collections.Generic.List <string> list = new System.Collections.Generic.List <string>();
            int    num        = 10000;
            string nextUserId = "";

            while (num == 10000)
            {
                AlipayMobilePublicFollowListResponse alipayMobilePublicFollowListResponse = AliOHHelper.GetfollowList(nextUserId);
                if (alipayMobilePublicFollowListResponse != null && !alipayMobilePublicFollowListResponse.IsError && alipayMobilePublicFollowListResponse.Data != null && int.TryParse(alipayMobilePublicFollowListResponse.Count, out num))
                {
                    if (alipayMobilePublicFollowListResponse.Data.UserIdList != null)
                    {
                        nextUserId = alipayMobilePublicFollowListResponse.Data.UserIdList[0];
                        foreach (string current in alipayMobilePublicFollowListResponse.Data.UserIdList)
                        {
                            list.Add(current);
                        }
                    }
                }
                else
                {
                    num = 0;
                }
            }
            return(list);
        }