/// <summary> /// Привести к типу VkParameters. /// </summary> /// <param name="p">Параметры.</param> /// <returns></returns> internal static VkParameters ToVkParameters(GroupsBanUserParams p) { var parameters = new VkParameters { { "group_id", p.GroupId }, { "user_id", p.UserId }, { "end_date", p.EndDate }, { "reason", p.Reason }, { "comment", p.Comment }, { "comment_visible", p.CommentVisible } }; return parameters; }
/// <summary> /// Привести к типу VkParameters. /// </summary> /// <param name="p">Параметры.</param> /// <returns></returns> internal static VkParameters ToVkParameters(GroupsBanUserParams p) { var parameters = new VkParameters { { "group_id", p.GroupId }, { "user_id", p.UserId }, { "end_date", p.EndDate }, { "reason", p.Reason }, { "comment", p.Comment }, { "comment_visible", p.CommentVisible } }; return(parameters); }