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

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

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

Метод Описание
CreateSpace ( int orgId, string name, string privacy = null, bool autoJoin = null, bool postOnNewApp = null, bool postOnNewMember = null ) : Task

Add a new space to an organization.

Podio API Reference: https://developers.podio.com/doc/spaces/create-space-22390

GetAvailableSeats ( int spaceId ) : Task

Returns the available seats. A null value means there is an unlimited number of available seats.

Podio API Reference: https://developers.podio.com/doc/spaces/get-available-spaces-1911961

GetAvailableSpaces ( int orgId ) : Task>

Returns the available spaces for the given organization. This is spaces that are open and available for the user to join.

Podio API Reference: https://developers.podio.com/doc/spaces/get-available-spaces-1911961

GetOrganizationSpaces ( int orgId ) : Task>

Returns the workspaces in the organization that are accesible for the active user.

Podio API Reference: https://developers.podio.com/doc/spaces/get-list-of-organization-workspaces-238875316

GetSpace ( int spaceId ) : Task

Get the space with the given id.

Podio API Reference: https://developers.podio.com/doc/spaces/get-space-22389

GetSpaceByOrgAndUrlLabel ( int orgId, string urlLabel ) : Task

Returns the space in the given org with the given URL label

Podio API Reference: https://developers.podio.com/doc/spaces/get-space-by-org-and-url-label-476929

GetSpaceByUrl ( string orgSlug, string spaceSlug, string spaceUrl ) : Task

Returns the space and organization with the given full URL.

Podio API Reference: https://developers.podio.com/doc/spaces/get-space-by-url-22481

GetTopSpaces ( int limit = 6 ) : Task>

Returns the top spaces for the user.

Podio API Reference: https://developers.podio.com/doc/spaces/get-top-spaces-22477

SpaceService ( Podio currentInstance ) : System.Collections.Generic
UpdateSpace ( int spaceId, string name = null, string urlLabel = null, string privacy = null, bool autoJoin = null, bool postOnNewApp = null, bool postOnNewMember = null ) : Task

Updates the space with the given id.

Podio API Reference: https://developers.podio.com/doc/spaces/update-space-22391

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

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

Add a new space to an organization.

Podio API Reference: https://developers.podio.com/doc/spaces/create-space-22390

public CreateSpace ( int orgId, string name, string privacy = null, bool autoJoin = null, bool postOnNewApp = null, bool postOnNewMember = null ) : Task
orgId int
name string The name of the space
privacy string The privacy level of the space, either "open" or "closed", defaults to "closed"
autoJoin bool True if new employees should be joined automatically, false otherwise, defaults to false
postOnNewApp bool True if new apps should be announced with a status update, false otherwise
postOnNewMember bool True if new members should be announced with a status update, false otherwise
Результат Task

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

Returns the available seats. A null value means there is an unlimited number of available seats.

Podio API Reference: https://developers.podio.com/doc/spaces/get-available-spaces-1911961

public GetAvailableSeats ( int spaceId ) : Task
spaceId int
Результат Task

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

Returns the available spaces for the given organization. This is spaces that are open and available for the user to join.

Podio API Reference: https://developers.podio.com/doc/spaces/get-available-spaces-1911961

public GetAvailableSpaces ( int orgId ) : Task>
orgId int
Результат Task>

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

Returns the workspaces in the organization that are accesible for the active user.

Podio API Reference: https://developers.podio.com/doc/spaces/get-list-of-organization-workspaces-238875316

public GetOrganizationSpaces ( int orgId ) : Task>
orgId int
Результат Task>

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

Get the space with the given id.

Podio API Reference: https://developers.podio.com/doc/spaces/get-space-22389

public GetSpace ( int spaceId ) : Task
spaceId int
Результат Task

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

Returns the space in the given org with the given URL label

Podio API Reference: https://developers.podio.com/doc/spaces/get-space-by-org-and-url-label-476929

public GetSpaceByOrgAndUrlLabel ( int orgId, string urlLabel ) : Task
orgId int
urlLabel string
Результат Task

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

Returns the space and organization with the given full URL.

Podio API Reference: https://developers.podio.com/doc/spaces/get-space-by-url-22481

public GetSpaceByUrl ( string orgSlug, string spaceSlug, string spaceUrl ) : Task
orgSlug string The org of the slug to search for
spaceSlug string The slug of the url to search for
spaceUrl string /// The full URL of the space. The URL does not have to be truncated to the space root, it can be /// the full URL of the resource. ///
Результат Task

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

Returns the top spaces for the user.

Podio API Reference: https://developers.podio.com/doc/spaces/get-top-spaces-22477

public GetTopSpaces ( int limit = 6 ) : Task>
limit int
Результат Task>

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

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

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

Updates the space with the given id.

Podio API Reference: https://developers.podio.com/doc/spaces/update-space-22391

public UpdateSpace ( int spaceId, string name = null, string urlLabel = null, string privacy = null, bool autoJoin = null, bool postOnNewApp = null, bool postOnNewMember = null ) : Task
spaceId int
name string The name of the space
urlLabel string The new URL label, if any changes
privacy string The privacy level of the space, either "open" or "closed", defaults to "closed"
autoJoin bool True if new employees should be joined automatically, false otherwise, defaults to false
postOnNewApp bool True if new apps should be announced with a status update, false otherwise
postOnNewMember bool True if new members should be announced with a status update, false otherwise
Результат Task