mirror of
https://github.com/standardebooks/web.git
synced 2025-07-21 06:45:14 -04:00
Refactor feed functions out of Library and add some enums
This commit is contained in:
parent
66c44cbdbe
commit
90b70b3235
8 changed files with 117 additions and 101 deletions
|
@ -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',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue