17 lines
429 B
PHP
17 lines
429 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\GPodderSync\Core\PodcastData;
|
|
|
|
interface PodcastDataReader
|
|
{
|
|
public function getCachedOrFetchPodcastData(string $url, string $userId): ?PodcastData;
|
|
|
|
public function fetchPodcastData(string $url, string $userId): ?PodcastData;
|
|
|
|
public function tryGetCachedPodcastData(string $url): ?PodcastData;
|
|
|
|
public function trySetCachedPodcastData(string $url, PodcastData $data): bool;
|
|
}
|