Список параметров для метода photos.createComment
Example #1
0
		/// <summary>
		/// Привести к типу VkParameters.
		/// </summary>
		/// <param name="p">Параметры.</param>
		/// <returns></returns>
		internal static VkParameters ToVkParameters(PhotoCreateCommentParams p)
		{
			if (p.Message.Length > 2048)
			{
				throw new System.Exception("Максимальное количество символов: 2048.");
			}
			var parameters = new VkParameters
			{
				{ "owner_id", p.OwnerId },
				{ "photo_id", p.PhotoId },
				{ "message", p.Message },
				{ "attachments", p.Attachments },
				{ "from_group", p.FromGroup },
				{ "reply_to_comment", p.ReplyToComment },
				{ "sticker_id", p.StickerId },
				{ "access_key", p.AccessKey },
				{ "guid", p.Guid }
			};

			return parameters;
		}
Example #2
0
        /// <summary>
        /// Привести к типу VkParameters.
        /// </summary>
        /// <param name="p">Параметры.</param>
        /// <returns></returns>
        public static VkParameters ToVkParameters(PhotoCreateCommentParams p)
        {
            if (p.Message.Length > 2048)
            {
                throw new System.Exception("Максимальное количество символов: 2048.");
            }
            var parameters = new VkParameters
            {
                { "owner_id", p.OwnerId },
                { "photo_id", p.PhotoId },
                { "message", p.Message },
                { "attachments", p.Attachments },
                { "from_group", p.FromGroup },
                { "reply_to_comment", p.ReplyToComment },
                { "sticker_id", p.StickerId },
                { "access_key", p.AccessKey },
                { "captcha_sid", p.CaptchaSid },
                { "captcha_key", p.CaptchaKey },
                { "guid", p.Guid }
            };

            return(parameters);
        }
Example #3
0
 public long CreateComment(PhotoCreateCommentParams @params)
 {
     return _vk.Call("photos.createComment", @params);
 }