C# Класс PodioAPI.Services.FormService

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

ActivateForm() публичный Метод

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
Результат Task

CreateForm() публичный Метод

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.
Результат Task

DeactivateForm() публичный Метод

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
Результат Task

DeleteFrom() публичный Метод

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
Результат Task

FormService() публичный Метод

public FormService ( Podio currentInstance ) : System.Collections.Generic
currentInstance Podio
Результат System.Collections.Generic

GetForm() публичный Метод

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
Результат Task

GetForms() публичный Метод

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
Результат Task>

UpdateForm() публичный Метод

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.
Результат Task