C# Class PodioAPI.Services.SubscriptionService

Mostrar archivo Open project: podio/podio-dotnet

Public Methods

Method Description
GetSubscriptionById ( int subscriptionId ) : Task

Returns the subscription with the given id.

Podio API Reference: https://developers.podio.com/doc/subscriptions/get-subscription-by-id-22446

GetSubscriptionByReference ( string refType, int refId ) : Task

Get the subscription for the given object.

Podio API Reference: https://developers.podio.com/doc/subscriptions/get-subscription-by-reference-22408

Subscribe ( string refType, int refId ) : Task

Subscribes the user to the given object. Based on the object type, the user will receive notifications when actions are performed on the object. See the area for more details.

Podio API Reference: https://developers.podio.com/doc/subscriptions/subscribe-22409

SubscriptionService ( Podio currentInstance ) : PodioAPI.Models
UnsubscribeById ( int subscriptionId ) : Task

Stops the subscription with the given id

Podio API Reference: https://developers.podio.com/doc/subscriptions/unsubscribe-by-id-22445

UnsubscribeByReference ( string refType, int refId ) : Task

Unsubscribe from getting notifications on actions on the given object.

Podio API Reference: https://developers.podio.com/doc/subscriptions/unsubscribe-by-reference-22410

Method Details

GetSubscriptionById() public method

Returns the subscription with the given id.

Podio API Reference: https://developers.podio.com/doc/subscriptions/get-subscription-by-id-22446

public GetSubscriptionById ( int subscriptionId ) : Task
subscriptionId int
return Task

GetSubscriptionByReference() public method

Get the subscription for the given object.

Podio API Reference: https://developers.podio.com/doc/subscriptions/get-subscription-by-reference-22408

public GetSubscriptionByReference ( string refType, int refId ) : Task
refType string
refId int
return Task

Subscribe() public method

Subscribes the user to the given object. Based on the object type, the user will receive notifications when actions are performed on the object. See the area for more details.

Podio API Reference: https://developers.podio.com/doc/subscriptions/subscribe-22409

public Subscribe ( string refType, int refId ) : Task
refType string
refId int
return Task

SubscriptionService() public method

public SubscriptionService ( Podio currentInstance ) : PodioAPI.Models
currentInstance Podio
return PodioAPI.Models

UnsubscribeById() public method

Stops the subscription with the given id

Podio API Reference: https://developers.podio.com/doc/subscriptions/unsubscribe-by-id-22445

public UnsubscribeById ( int subscriptionId ) : Task
subscriptionId int
return Task

UnsubscribeByReference() public method

Unsubscribe from getting notifications on actions on the given object.

Podio API Reference: https://developers.podio.com/doc/subscriptions/unsubscribe-by-reference-22410

public UnsubscribeByReference ( string refType, int refId ) : Task
refType string
refId int
return Task