Список параметров для метода photos.getAll
Ejemplo n.º 1
0
        public ReadOnlyCollection<Photo> GetAll(out int count, PhotoGetAllParams @params)
        {
            var response = GetAll(@params);

            count = Convert.ToInt32(response.TotalCount);

            return response.ToReadOnlyCollection();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        public static VkParameters ToVkParameters(PhotoGetAllParams p)
        {
            var parameters = new VkParameters
            {
                { "owner_id", p.OwnerId },
                { "extended", p.Extended },
                { "offset", p.Offset },
                { "count", p.Count },
                { "photo_sizes", p.PhotoSizes },
                { "no_service_albums", p.NoServiceAlbums },
                { "need_hidden", p.NeedHidden },
                { "skip_hidden", p.SkipHidden }
            };

            return(parameters);
        }
Ejemplo n.º 3
0
		/// <summary>
		/// Привести к типу VkParameters.
		/// </summary>
		/// <param name="p">Параметры.</param>
		/// <returns></returns>
		internal static VkParameters ToVkParameters(PhotoGetAllParams p)
		{
			var parameters = new VkParameters
			{
				{ "owner_id", p.OwnerId },
				{ "extended", p.Extended },
				{ "offset", p.Offset },
				{ "count", p.Count },
				{ "photo_sizes", p.PhotoSizes },
				{ "no_service_albums", p.NoServiceAlbums },
				{ "need_hidden", p.NeedHidden },
				{ "skip_hidden", p.SkipHidden }
			};

			return parameters;
		}
Ejemplo n.º 4
0
 public ReadOnlyCollection<Photo> GetAll(out int count, PhotoGetAllParams @params)
 {
     var response = _vk.Call("photos.getAll", @params);
     count = response["count"];
     return response["items"].ToReadOnlyCollectionOf<Photo>(x => x);
 }