Esempio n. 1
0
        public List <VkUser> GetVkGroupsMembers(String groupId)
        {
            VkApi         api = new VkApi();
            List <VkUser> vkGroupsMembersList = null;

            VkApiResponse <UserDTO> response = api.GetGroupsMembers(groupId);

            if (response != null && response.Response.Count > 0)
            {
                vkGroupsMembersList = new List <VkUser>();
                foreach (UserDTO user in response.Response.Items)
                {
                    vkGroupsMembersList.Add(new VkUser(user));
                }
            }
            return(vkGroupsMembersList);
        }