Список параметров для метода photos.getAllComments
Example #1
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        public static VkParameters ToVkParameters(PhotoGetAllCommentsParams p)
        {
            var parameters = new VkParameters
            {
                { "owner_id", p.OwnerId },
                { "album_id", p.AlbumId },
                { "need_likes", p.NeedLikes },
                { "offset", p.Offset },
                { "count", p.Count }
            };

            return(parameters);
        }
Example #2
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        public static VkParameters ToVkParameters(PhotoGetAllCommentsParams p)
        {
            var parameters = new VkParameters
            {
                { "owner_id", p.OwnerId },
                { "album_id", p.AlbumId },
                { "need_likes", p.NeedLikes },
                { "offset", p.Offset },
                { "count", p.Count }
            };

            return parameters;
        }
Example #3
0
		public ReadOnlyCollection<Comment> GetAllComments(out int count, PhotoGetAllCommentsParams @params)
		{
			var response = GetAllComments(@params);

			count = Convert.ToInt32(response.TotalCount);

			return response.ToReadOnlyCollection();
		}
Example #4
0
 public ReadOnlyCollection<Comment> GetAllComments(out int count, PhotoGetAllCommentsParams @params)
 {
     var response = _vk.Call("photos.getAllComments", @params);
     count = response["count"];
     return response["items"].ToReadOnlyCollectionOf<Comment>(x => x);
 }