Repository URL to install this package:
|
Version:
6.2.3 ▾
|
<?php
/**
* Created by PhpStorm.
* User: eduarddezacastellano
* Date: 02/10/2018
* Time: 14:25
*/
namespace DigitalAscetic\GoogleApiClientBundle\Service;
use DigitalAscetic\GoogleApiClientBundle\Entity\GoogleApiNotificationsChannel;
use DigitalAscetic\GoogleApiClientBundle\Entity\IGoogleApiUser;
interface IGoogleApiService
{
/** Check if Google Service is enabled from config.yml */
public function isEnabled(): bool;
/** Check if Google Service is watching resource enabled from config.yml */
public function isWatching(): bool;
/** Apply disconnection logic when user disconnect from Google account */
public function disconnect(IGoogleApiUser $user, string $host = null);
/** Create notification channel to watch resource */
public function watchResource(IGoogleApiUser $user, string $host = null);
/** Stop notification channels for watch resource */
public function stopWatchingResources(IGoogleApiUser $user, string $host = null);
/** Renew notification channels for watch resource */
public function renewWatchChannels(IGoogleApiUser $user, string $host = null);
/** Receiving notifications for watch resource */
public function getNotifications(GoogleApiNotificationsChannel $channel, string $host = null);
}