C# Class PodioAPI.Services.WidgetService

Mostrar archivo Open project: podio/podio-dotnet

Public Methods

Method Description
CloneWidget ( int widgetId, string type, string id ) : Task

Clones the widget to a new position.

Podio API Reference: https://developers.podio.com/doc/widgets/clone-widget-105850650

CreateWidget ( string refType, int refId, string type, string title, dynamic config ) : Task

Create a new widget on the given reference.

Podio API Reference: https://developers.podio.com/doc/widgets/create-widget-22491

DeleteWidget ( int widgetId ) : Task

Deletes the given widget.

Podio API Reference: https://developers.podio.com/doc/widgets/delete-widget-22492

GetWidget ( int widgetId ) : Task

Returns the widget with the given id.

Podio API Reference: https://developers.podio.com/doc/widgets/get-widget-22489

GetWidgets ( string refType, int refId ) : Task>

Returns the widgets on the given reference.

Podio API Reference: https://developers.podio.com/doc/widgets/get-widgets-22494

UpdateWidget ( int widgetId, string title, dynamic config ) : Task

Updates a widget with a new title and configuration.

Podio API Reference: https://developers.podio.com/doc/widgets/update-widget-22490

UpdateWidgetOrder ( string refType, string refId, List widgetIds ) : Task

Updates the order of the widgets on a reference.

Podio API Reference: https://developers.podio.com/doc/widgets/update-widget-order-22495

WidgetService ( Podio currentInstance ) : System.Collections.Generic

Method Details

CloneWidget() public method

Clones the widget to a new position.

Podio API Reference: https://developers.podio.com/doc/widgets/clone-widget-105850650

public CloneWidget ( int widgetId, string type, string id ) : Task
widgetId int Widget id to be cloned
type string The type of the new position, either "user" or "space",
id string The id of the new position
return Task

CreateWidget() public method

Create a new widget on the given reference.

Podio API Reference: https://developers.podio.com/doc/widgets/create-widget-22491

public CreateWidget ( string refType, int refId, string type, string title, dynamic config ) : Task
refType string
refId int
type string The type of widget, see the area for possible values
title string The title of the widget
config dynamic The configuration, depends on the types. See the area for details
return Task

DeleteWidget() public method

Deletes the given widget.

Podio API Reference: https://developers.podio.com/doc/widgets/delete-widget-22492

public DeleteWidget ( int widgetId ) : Task
widgetId int
return Task

GetWidget() public method

Returns the widget with the given id.

Podio API Reference: https://developers.podio.com/doc/widgets/get-widget-22489

public GetWidget ( int widgetId ) : Task
widgetId int
return Task

GetWidgets() public method

Returns the widgets on the given reference.

Podio API Reference: https://developers.podio.com/doc/widgets/get-widgets-22494

public GetWidgets ( string refType, int refId ) : Task>
refType string
refId int
return Task>

UpdateWidget() public method

Updates a widget with a new title and configuration.

Podio API Reference: https://developers.podio.com/doc/widgets/update-widget-22490

public UpdateWidget ( int widgetId, string title, dynamic config ) : Task
widgetId int
title string
config dynamic
return Task

UpdateWidgetOrder() public method

Updates the order of the widgets on a reference.

Podio API Reference: https://developers.podio.com/doc/widgets/update-widget-order-22495

public UpdateWidgetOrder ( string refType, string refId, List widgetIds ) : Task
refType string
refId string
widgetIds List The ids of the widgets in the new requested order.
return Task

WidgetService() public method

public WidgetService ( Podio currentInstance ) : System.Collections.Generic
currentInstance Podio
return System.Collections.Generic