Параметры метода wall.search
Exemple #1
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        public static VkParameters ToVkParameters(WallSearchParams p)
        {
            var parameters = new VkParameters
            {
                { "owner_id", p.OwnerId },
                { "domain", p.Domain },
                { "query", p.Query },
                { "owners_only", p.OwnersOnly },
                { "count", p.Count },
                { "offset", p.Offset },
                { "extended", p.Extended },
                { "fields", p.Fields }
            };

            return(parameters);
        }
Exemple #2
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        public static VkParameters ToVkParameters(WallSearchParams p)
        {
            var parameters = new VkParameters
            {
                { "owner_id", p.OwnerId },
                { "domain", p.Domain },
                { "query", p.Query },
                { "owners_only", p.OwnersOnly },
                { "count", p.Count },
                { "offset", p.Offset },
                { "extended", p.Extended },
                { "fields", p.Fields }
            };

            return parameters;
        }