Beispiel #1
0
        public string RmlGetGroupInterString(long?id_f, long?id_s)
        {
            var groups_params = new VkNet.Model.RequestParams.GroupsGetParams();

            groups_params.UserId   = id_f;
            groups_params.Extended = true;

            var groups_params1 = new VkNet.Model.RequestParams.GroupsGetParams();

            groups_params1.UserId   = id_s;
            groups_params1.Extended = true;

            var groups  = MainWindow.vkApi.Groups.Get(groups_params);
            var groups2 = MainWindow.vkApi.Groups.Get(groups_params1);


            var inter = groups.Intersect(groups2, new GroupComparer());

            string gr_info = "";

            foreach (var group in inter)
            {
                gr_info += group.Name + "\n";
            }

            return(gr_info);
        }
Beispiel #2
0
        //METHODS IMPLEMENTATION SECTION
        public IEnumerable <VkNet.Model.Group> RmlGetGroupIntersection(long?id_f, long?id_s)
        {
            var groups_params = new VkNet.Model.RequestParams.GroupsGetParams();

            groups_params.UserId   = id_f;
            groups_params.Extended = true;

            var groups_params1 = new VkNet.Model.RequestParams.GroupsGetParams();

            groups_params1.UserId   = id_s;
            groups_params1.Extended = true;

            var groups  = MainWindow.vkApi.Groups.Get(groups_params);
            var groups2 = MainWindow.vkApi.Groups.Get(groups_params1);


            var inter = groups.Intersect(groups2, new GroupComparer());

            return(inter);
        }