Параметры метода wall.search
예제 #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);
        }
예제 #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;
        }