C# Class PodioAPI.Services.FormService

Mostra file Open project: podio/podio-dotnet

Public Methods

Method Description
ActivateForm ( int formId ) : Task

Enables the form with the given id. Only disabled forms can be enabled, which makes it once again possible to create items in the app using the form.

Podio API Reference: https://developers.podio.com/doc/forms/activate-form-1107439

CreateForm ( int appId, FormSettings fromSettings, string domains, List fields, bool attachments ) : Task

Creates a new form on the app.

Podio API Reference: https://developers.podio.com/doc/forms/create-form-53803

DeactivateForm ( int formId ) : Task

Disables the form with given id. This makes it impossible to create new items using the form. Instead, a message about the form being disabled is shown.

Podio API Reference: https://developers.podio.com/doc/forms/deactivate-form-1107378

DeleteFrom ( int formId ) : Task

Deletes the form with the given id.

Podio API Reference: https://developers.podio.com/doc/forms/delete-from-53810

FormService ( Podio currentInstance ) : System.Collections.Generic
GetForm ( int formId ) : Task

Returns the form with the given id.

Podio API Reference: https://developers.podio.com/doc/forms/get-form-53754

GetForms ( int appId ) : Task>

Returns all the active forms on the given app.

Podio API Reference: https://developers.podio.com/doc/forms/get-forms-53771

UpdateForm ( int formId, FormSettings fromSettings, string domains, List fields, bool attachments ) : Task

Updates the form with new settings, domains, fields, etc.

Podio API Reference: https://developers.podio.com/doc/forms/update-form-53808

Method Details

ActivateForm() public method

Enables the form with the given id. Only disabled forms can be enabled, which makes it once again possible to create items in the app using the form.

Podio API Reference: https://developers.podio.com/doc/forms/activate-form-1107439

public ActivateForm ( int formId ) : Task
formId int
return Task

CreateForm() public method

Creates a new form on the app.

Podio API Reference: https://developers.podio.com/doc/forms/create-form-53803

public CreateForm ( int appId, FormSettings fromSettings, string domains, List fields, bool attachments ) : Task
appId int
fromSettings PodioAPI.Models.FormSettings The settings of the form.
domains string The list of domains where the form can be used.
fields List The id and settings for each field.
attachments bool True if attachments are allowed, false otherwise.
return Task

DeactivateForm() public method

Disables the form with given id. This makes it impossible to create new items using the form. Instead, a message about the form being disabled is shown.

Podio API Reference: https://developers.podio.com/doc/forms/deactivate-form-1107378

public DeactivateForm ( int formId ) : Task
formId int
return Task

DeleteFrom() public method

Deletes the form with the given id.

Podio API Reference: https://developers.podio.com/doc/forms/delete-from-53810

public DeleteFrom ( int formId ) : Task
formId int
return Task

FormService() public method

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

GetForm() public method

Returns the form with the given id.

Podio API Reference: https://developers.podio.com/doc/forms/get-form-53754

public GetForm ( int formId ) : Task
formId int
return Task

GetForms() public method

Returns all the active forms on the given app.

Podio API Reference: https://developers.podio.com/doc/forms/get-forms-53771

public GetForms ( int appId ) : Task>
appId int
return Task>

UpdateForm() public method

Updates the form with new settings, domains, fields, etc.

Podio API Reference: https://developers.podio.com/doc/forms/update-form-53808

public UpdateForm ( int formId, FormSettings fromSettings, string domains, List fields, bool attachments ) : Task
formId int
fromSettings PodioAPI.Models.FormSettings The settings of the form.
domains string The list of domains where the form can be used.
fields List The id and settings for each field.
attachments bool True if attachments are allowed, false otherwise.
return Task