Параметры метода groups.getMembers
Example #1
0
		/// <summary>
		/// Привести к типу VkParameters.
		/// </summary>
		/// <param name="p">Параметры.</param>
		/// <returns></returns>
		internal static VkParameters ToVkParameters(GroupsGetMembersParams p)
		{
			var parameters = new VkParameters
			{
				{ "group_id", p.GroupId },
				{ "sort", p.Sort },
				{ "offset", p.Offset },
				{ "count", p.Count },
				{ "fields", p.Fields },
				{ "filter", p.Filter }
			};

			return parameters;
		}
Example #2
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        public static VkParameters ToVkParameters(GroupsGetMembersParams p)
        {
            var parameters = new VkParameters
            {
                { "group_id", p.GroupId },
                { "sort", p.Sort },
                { "offset", p.Offset },
                { "count", p.Count },
                { "fields", p.Fields },
                { "filter", p.Filter }
            };

            return(parameters);
        }
Example #3
0
        public ReadOnlyCollection<User> GetMembers(out int totalCount, GroupsGetMembersParams @params)
        {
            var response = GetMembers(@params);

            totalCount = Convert.ToInt32(response.TotalCount);

            return response.ToReadOnlyCollection();
        }
Example #4
0
        public ReadOnlyCollection<User> GetMembers(string gid, out int totalCount, uint? count = null, uint? offset = null, GroupsSort sort = null, UsersFields fields = null, GroupsFilters filters = null)
        {
            var parameters = new GroupsGetMembersParams
            {
                Offset = offset,
                Filter = filters,
                Fields = fields,
                Count = count,
                GroupId = gid,
                Sort = sort
            };

            return GetMembers(out totalCount, parameters);
        }
Example #5
0
        public ReadOnlyCollection<User> GetMembers(long gid, out int totalCount, uint? count = null, uint? offset = null, GroupsSort sort = null, UsersFields fields = null, GroupsFilters filters = null)
        {
            VkErrors.ThrowIfNumberIsNegative(() => gid);
            var parameters = new GroupsGetMembersParams
            {
                GroupId = gid.ToString(),
                Count = count,
                Offset = offset,
                Sort = sort,
                Fields = fields,
                Filter = filters
            };

            return GetMembers(out totalCount, parameters);
        }