/// <summary> /// Привести к типу VkParameters. /// </summary> /// <param name="p">Параметры.</param> /// <returns></returns> internal static VkParameters ToVkParameters(LikesAddParams p) { var result = new VkParameters { { "type", p.Type }, { "item_id", p.ItemId }, { "owner_id", p.OwnerId }, { "access_key", p.AccessKey }, { "ref", p.Reference }, { "captcha_sid", p.CaptchaSid }, { "captcha_key", p.CaptchaKey } }; return result; }
public long Add(LikesAddParams @params) { var response = _vk.Call("likes.add", @params); return response["likes"]; }