Список параметров запроса newsfeed.search
Exemple #1
0
		/// <summary>
		/// Привести к типу VkParameters.
		/// </summary>
		/// <param name="p">Параметры.</param>
		/// <returns></returns>
		internal static VkParameters ToVkParameters(NewsFeedSearchParams p)
		{
			var parameters = new VkParameters
			{
				{ "q", p.Query },
				{ "extended", p.Extended },
				{ "latitude", p.Latitude },
				{ "longitude", p.Longitude },
				{ "start_time", p.StartTime },
				{ "end_time", p.EndTime },
				{ "start_from", p.StartFrom },
				{ "fields", p.Fields }
			};
			if (p.Count <= 200)
			{
				parameters.Add("count", p.Count);
			}

			return parameters;
		}
Exemple #2
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        internal static VkParameters ToVkParameters(NewsFeedSearchParams p)
        {
            var parameters = new VkParameters
            {
                { "q", p.Query },
                { "extended", p.Extended },
                { "latitude", p.Latitude },
                { "longitude", p.Longitude },
                { "start_time", p.StartTime },
                { "end_time", p.EndTime },
                { "start_from", p.StartFrom },
                { "fields", p.Fields }
            };

            if (p.Count <= 200)
            {
                parameters.Add("count", p.Count);
            }

            return(parameters);
        }
Exemple #3
0
 public ReadOnlyCollection<NewsSearchResult> Search(NewsFeedSearchParams @params)
 {
     VkResponseArray response = _vk.Call("newsfeed.search", @params);
     return response.ToReadOnlyCollectionOf<NewsSearchResult>(x => x);
 }