/// <summary> /// Sends a POST to '/api/gridwidget/{widgetType}/data/{dataName}' /// </summary> /// <param name="widgetType">a path parameter (no description)</param> /// <param name="dataName">a path parameter (no description)</param> /// <param name="model">a body parameter (no description)</param> /// <returns></returns> public static RestOperation GetGridWidgetData(string widgetType, string dataName, GridWidgetContext model) { return new RestOperation("POST", "api/gridwidget/" + widgetType + "/data/" + dataName + "") { Content = model }; }
public GridWidgetContext Clone(bool includeLocalProperties) { var c = new GridWidgetContext { BaseQuery = BaseQuery, IndexName = IndexName, PackageId = PackageId, PackageType = PackageType, Parameters = Parameters, ProjectId = ProjectId, Query = Query, TimeZone = TimeZone, AllowableTypes = AllowableTypes.ToList(), Selections = Selections.Select(x=>x.Clone(includeLocalProperties)).ToList(), }; CopyExtraPropertiesToClone(c, includeLocalProperties); return c; }
partial void CopyExtraPropertiesToClone(GridWidgetContext clone, bool includeLocalProperties);
/// <summary> /// Sends a POST to '/api/gridwidget/{widgetType}/data/{dataName}' (asynchronous) /// </summary> /// <param name="widgetType">a path parameter (no description)</param> /// <param name="dataName">a path parameter (no description)</param> /// <param name="model">a body parameter (no description)</param> /// <returns></returns> public virtual async Task<GridWidgetData> GetGridWidgetDataAsync(string widgetType, string dataName, GridWidgetContext model) { var operation = Operations.GetGridWidgetData(widgetType, dataName, model); var response = await _client.SendAsync(operation.BuildRequest(_client)); EnsureSuccess(response); var result = await response.Content.ReadAsAsync<GridWidgetData>(); return result; }