2020-02-09 13:29:09 +01:00
|
|
|
class PodcastLocal {
|
|
|
|
final String title;
|
|
|
|
final String imageUrl;
|
|
|
|
final String rssUrl;
|
|
|
|
final String author;
|
2020-06-10 18:36:53 +02:00
|
|
|
|
2020-02-09 13:29:09 +01:00
|
|
|
final String primaryColor;
|
2020-02-23 14:20:07 +01:00
|
|
|
final String id;
|
2020-02-20 16:44:42 +01:00
|
|
|
final String imagePath;
|
2020-02-23 14:20:07 +01:00
|
|
|
final String provider;
|
|
|
|
final String link;
|
2020-03-19 20:58:30 +01:00
|
|
|
|
|
|
|
final String description;
|
2020-03-31 18:36:20 +02:00
|
|
|
int upateCount;
|
|
|
|
int episodeCount;
|
2020-06-10 18:36:53 +02:00
|
|
|
PodcastLocal(this.title, this.imageUrl, this.rssUrl, this.primaryColor,
|
|
|
|
this.author, this.id, this.imagePath, this.provider, this.link,
|
|
|
|
{this.description = '', this.upateCount = 0, this.episodeCount = 0})
|
|
|
|
: assert(rssUrl != null);
|
|
|
|
@override
|
|
|
|
bool operator ==(Object podcastLocal) =>
|
|
|
|
podcastLocal is PodcastLocal &&
|
|
|
|
podcastLocal.rssUrl == rssUrl &&
|
|
|
|
podcastLocal.id == id;
|
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode => id.hashCode + rssUrl.hashCode;
|
2020-02-20 10:09:21 +01:00
|
|
|
}
|