/// <summary> /// Привести к типу VkParameters. /// </summary> /// <param name="p"> Параметры. </param> /// <returns> </returns> public static VkParameters ToVkParameters(BoardGetTopicsParams p) { var parameters = new VkParameters { { "group_id", p.GroupId } , { "topic_ids", p.TopicIds } , { "order", p.Order } , { "offset", p.Offset } , { "count", p.Count } , { "extended", p.Extended } , { "preview", p.Preview } , { "preview_length", p.PreviewLength } }; return(parameters); }
/// <summary> /// Привести к типу VkParameters. /// </summary> /// <param name="p">Параметры.</param> /// <returns></returns> internal static VkParameters ToVkParameters(BoardGetTopicsParams p) { var parameters = new VkParameters { { "group_id", p.GroupId }, { "topic_ids", p.TopicIds }, { "order", p.Order }, { "offset", p.Offset }, { "count", p.Count }, { "extended", p.Extended }, { "preview", p.Preview }, { "preview_length", p.PreviewLength } }; return parameters; }