Refactor feed functions out of Library and add some enums

This commit is contained in:
Alex Cabal 2024-11-15 21:09:42 -06:00
parent 66c44cbdbe
commit 90b70b3235
8 changed files with 117 additions and 101 deletions

View file

@ -5,4 +5,12 @@ enum FeedType: string{
case Atom = 'atom';
case Opds = 'opds';
case Rss = 'rss';
public function GetDisplayName(): string{
return match($this){
self::Atom => 'Atom 1.0',
self::Opds => 'OPDS 1.2',
self::Rss => 'RSS 2.0',
};
}
}