/// <summary> /// Привести к типу VkParameters. /// </summary> /// <param name="p">Параметры.</param> /// <returns></returns> public static VkParameters ToVkParameters(WallSearchParams p) { var parameters = new VkParameters { { "owner_id", p.OwnerId }, { "domain", p.Domain }, { "query", p.Query }, { "owners_only", p.OwnersOnly }, { "count", p.Count }, { "offset", p.Offset }, { "extended", p.Extended }, { "fields", p.Fields } }; return(parameters); }
/// <summary> /// Привести к типу VkParameters. /// </summary> /// <param name="p">Параметры.</param> /// <returns></returns> public static VkParameters ToVkParameters(WallSearchParams p) { var parameters = new VkParameters { { "owner_id", p.OwnerId }, { "domain", p.Domain }, { "query", p.Query }, { "owners_only", p.OwnersOnly }, { "count", p.Count }, { "offset", p.Offset }, { "extended", p.Extended }, { "fields", p.Fields } }; return parameters; }