2023-08-02 10:13:16 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace OCA\GPodderSync\Core\PodcastData;
|
|
|
|
|
2023-08-03 22:23:59 +00:00
|
|
|
class PodcastDataReader
|
2023-08-02 10:13:16 +00:00
|
|
|
{
|
2023-08-03 22:23:59 +00:00
|
|
|
/**
|
|
|
|
* @return ?PodcastData
|
|
|
|
*/
|
2023-12-23 16:25:20 +00:00
|
|
|
public function getCachedOrFetchPodcastData(string $url, string $userId) {}
|
2023-08-02 10:13:16 +00:00
|
|
|
|
2023-08-03 22:23:59 +00:00
|
|
|
/**
|
|
|
|
* @return ?PodcastData
|
|
|
|
*/
|
2023-12-23 16:25:20 +00:00
|
|
|
public function fetchPodcastData(string $url, string $userId) {}
|
2023-08-02 10:13:16 +00:00
|
|
|
|
2023-08-03 22:23:59 +00:00
|
|
|
/**
|
|
|
|
* @return ?PodcastData
|
|
|
|
*/
|
2023-12-23 16:25:20 +00:00
|
|
|
public function tryGetCachedPodcastData(string $url) {}
|
2023-08-02 10:13:16 +00:00
|
|
|
|
2023-08-03 22:23:59 +00:00
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
2023-12-23 16:25:20 +00:00
|
|
|
public function trySetCachedPodcastData(string $url, PodcastData $data) {}
|
2023-08-02 10:13:16 +00:00
|
|
|
}
|