C# Class PodioAPI.Services.FormService

Afficher le fichier Open project: podio/podio-dotnet

Méthodes publiques

Méthode 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 méthode

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
Résultat Task

CreateForm() public méthode

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.
Résultat Task

DeactivateForm() public méthode

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
Résultat Task

DeleteFrom() public méthode

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
Résultat Task

FormService() public méthode

public FormService ( Podio currentInstance ) : System.Collections.Generic
currentInstance Podio
Résultat System.Collections.Generic

GetForm() public méthode

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
Résultat Task

GetForms() public méthode

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
Résultat Task>

UpdateForm() public méthode

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.
Résultat Task