Список параметров для метода photos.getComments
Exemplo n.º 1
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        internal static VkParameters ToVkParameters(PhotoGetCommentsParams p)
        {
            var parameters = new VkParameters
            {
                { "owner_id", p.OwnerId },
                { "photo_id", p.PhotoId },
                { "need_likes", p.NeedLikes },
                { "start_comment_id", p.StartCommentId },
                { "offset", p.Offset },
                { "count", p.Count },
                { "sort", p.Sort },
                { "access_key", p.AccessKey },
                { "extended", p.Extended },
                { "fields", p.Fields }
            };

            return(parameters);
        }
Exemplo n.º 2
0
		/// <summary>
		/// Привести к типу VkParameters.
		/// </summary>
		/// <param name="p">Параметры.</param>
		/// <returns></returns>
		internal static VkParameters ToVkParameters(PhotoGetCommentsParams p)
		{
			var parameters = new VkParameters
			{
				{ "owner_id", p.OwnerId },
				{ "photo_id", p.PhotoId },
				{ "need_likes", p.NeedLikes },
				{ "start_comment_id", p.StartCommentId },
				{ "offset", p.Offset },
				{ "count", p.Count },
				{ "sort", p.Sort },
				{ "access_key", p.AccessKey },
				{ "extended", p.Extended },
				{ "fields", p.Fields }
			};

			return parameters;
		}
Exemplo n.º 3
0
		public ReadOnlyCollection<Comment> GetComments(out int count, PhotoGetCommentsParams @params)
		{
			var response = GetComments(@params);

			count = Convert.ToInt32(response.TotalCount);

			return response.ToReadOnlyCollection();
		}
Exemplo n.º 4
0
 public ReadOnlyCollection<Comment> GetComments(out int count, PhotoGetCommentsParams @params)
 {
     var response = _vk.Call("photos.getComments", @params);
     count = response["count"];
     return response["items"].ToReadOnlyCollectionOf<Comment>(x => x);
 }