module Place::WorkplaceSubscription

Direct including types

Defined in:

place/models/workplace_subscriptions.cr

Constant Summary

SUBSCRIPTION_LENGTH = 3.hours

the API reports that 6 days is the max: Subscription expiration can only be 10070 minutes in the future.

Instance Method Summary

Instance Method Detail

def sub_renewed_at : Time #

[View source]
abstract def subscription_on_crud(notification : NotifyEvent) : Nil #

[View source]
abstract def subscription_on_missed : Nil #

[View source]
abstract def subscription_resource(service_name : ServiceName) : String #

should return the resource URI for monitoring, for example:

case service_name in .google? resource = "/calendars/#{calendar_id}/events" in .office365? resource = "/users/#{calendar_id}/events"


[View source]