Список параметров для метода photos.getComments
示例#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);
        }
示例#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;
		}
示例#3
0
		public ReadOnlyCollection<Comment> GetComments(out int count, PhotoGetCommentsParams @params)
		{
			var response = GetComments(@params);

			count = Convert.ToInt32(response.TotalCount);

			return response.ToReadOnlyCollection();
		}
示例#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);
 }