C# 클래스 PodioAPI.Services.GrantService

파일 보기 프로젝트 열기: podio/podio-dotnet

공개 메소드들

메소드 설명
CountGrantsOnObject ( string refType, dynamic refId ) : Task

Returns the count of grants on the given object.

Podio API Reference: https://developers.podio.com/doc/grants/count-grants-on-object-19275931

CreateGrant ( string refType, int refId, List people, string action, string message = null ) : Task

Create a grant on the given object to the given users.

Podio API Reference: https://developers.podio.com/doc/grants/create-grant-16168841

GetGrantsOnObject ( string refType, dynamic refId ) : Task>

Returns the grants on the given object.

Podio API Reference: https://developers.podio.com/doc/grants/get-grants-on-object-16491464

GetGrantsToUserOnSpace ( int spaceId, int userId ) : Task>

Returns all the grants for the user on the given space.

Podio API Reference: https://developers.podio.com/doc/grants/get-grants-to-user-on-space-19389786

GetOwnGrantInformation ( string refType, dynamic refId ) : Task

Return the grant information for the active user, if any

Podio API Reference: https://developers.podio.com/doc/grants/get-own-grant-information-16490748

GetOwnGrantsOnOrg ( int orgId ) : Task>

Returns all the grants for the current user on the given organization.

Podio API Reference: https://developers.podio.com/doc/grants/get-own-grants-on-org-22330891

GrantService ( Podio currentInstance ) : System.Collections.Generic
RemoveGrant ( string refType, dynamic refId, int userId ) : Task

Removes the grant from the given user on the given object.

Podio API Reference: https://developers.podio.com/doc/grants/remove-grant-16496711

메소드 상세

CountGrantsOnObject() 공개 메소드

Returns the count of grants on the given object.

Podio API Reference: https://developers.podio.com/doc/grants/count-grants-on-object-19275931

public CountGrantsOnObject ( string refType, dynamic refId ) : Task
refType string
refId dynamic
리턴 Task

CreateGrant() 공개 메소드

Create a grant on the given object to the given users.

Podio API Reference: https://developers.podio.com/doc/grants/create-grant-16168841

public CreateGrant ( string refType, int refId, List people, string action, string message = null ) : Task
refType string
refId int
people List The list of people to grant access to. This is a list of contact identifiers
action string The action required of the people, either "view", "comment" or "rate", or left out
message string Any special message to the users
리턴 Task

GetGrantsOnObject() 공개 메소드

Returns the grants on the given object.

Podio API Reference: https://developers.podio.com/doc/grants/get-grants-on-object-16491464

public GetGrantsOnObject ( string refType, dynamic refId ) : Task>
refType string
refId dynamic
리턴 Task>

GetGrantsToUserOnSpace() 공개 메소드

Returns all the grants for the user on the given space.

Podio API Reference: https://developers.podio.com/doc/grants/get-grants-to-user-on-space-19389786

public GetGrantsToUserOnSpace ( int spaceId, int userId ) : Task>
spaceId int
userId int
리턴 Task>

GetOwnGrantInformation() 공개 메소드

Return the grant information for the active user, if any

Podio API Reference: https://developers.podio.com/doc/grants/get-own-grant-information-16490748

public GetOwnGrantInformation ( string refType, dynamic refId ) : Task
refType string
refId dynamic
리턴 Task

GetOwnGrantsOnOrg() 공개 메소드

Returns all the grants for the current user on the given organization.

Podio API Reference: https://developers.podio.com/doc/grants/get-own-grants-on-org-22330891

public GetOwnGrantsOnOrg ( int orgId ) : Task>
orgId int
리턴 Task>

GrantService() 공개 메소드

public GrantService ( Podio currentInstance ) : System.Collections.Generic
currentInstance Podio
리턴 System.Collections.Generic

RemoveGrant() 공개 메소드

Removes the grant from the given user on the given object.

Podio API Reference: https://developers.podio.com/doc/grants/remove-grant-16496711

public RemoveGrant ( string refType, dynamic refId, int userId ) : Task
refType string
refId dynamic
userId int
리턴 Task