VkNet.Model.RequestParams.WallPostParams.ToVkParameters C# (CSharp) 메소드

ToVkParameters() 공개 정적인 메소드

Привести к типу VkParameters.
public static ToVkParameters ( WallPostParams p ) : VkParameters
p WallPostParams Параметры.
리턴 VkParameters
        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 }
            };

            return result;
        }