Skip to content

Commit

Permalink
Отсутствие поля close_comments в методе Wall.Post #662
Browse files Browse the repository at this point in the history
Signed-off-by: Инютин Максим Николаевич <[email protected]>
  • Loading branch information
inyutin-maxim committed Sep 1, 2018
1 parent d753b0b commit 4b77104
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions VkNet/Model/RequestParams/Wall/WallPostParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ public class WallPostParams
[JsonProperty(propertyName: "mark_as_ads")]
public bool? MarkAsAds { get; set; }

/// <summary>
/// Включать закртыте комментарии
/// </summary>
[JsonProperty("close_comments")]
public bool? CloseComments { get; set; }

/// <summary>
/// Привести к типу VkParameters.
/// </summary>
Expand All @@ -162,22 +168,22 @@ public static VkParameters ToVkParameters(WallPostParams p)
{
var result = new VkParameters
{
{ "owner_id", p.OwnerId }
, { "friends_only", p.FriendsOnly }
, { "from_group", p.FromGroup }
, { "message", p.Message }
, { "attachments", p.Attachments }
, { "services", p.Services }
, { "signed", p.Signed }
, { "publish_date", p.PublishDate }
, { "lat", p.Lat }
, { "long", p.Long }
, { "place_id", p.PlaceId }
, { "post_id", p.PostId }
, { "captcha_sid", p.CaptchaSid }
, { "captcha_key", p.CaptchaKey }
, { "guid", p.Guid }
, { "mark_as_ads", p.MarkAsAds }
{ "owner_id", p.OwnerId },
{ "friends_only", p.FriendsOnly },
{ "from_group", p.FromGroup },
{ "message", p.Message },
{ "attachments", p.Attachments },
{ "services", p.Services },
{ "signed", p.Signed },
{ "publish_date", p.PublishDate },
{ "lat", p.Lat },
{ "long", p.Long },
{ "place_id", p.PlaceId },
{ "post_id", p.PostId },
{ "captcha_sid", p.CaptchaSid },
{ "captcha_key", p.CaptchaKey },
{ "guid", p.Guid },
{ "mark_as_ads", p.MarkAsAds }
};

return result;
Expand Down

0 comments on commit 4b77104

Please sign in to comment.