29 lines
782 B
Dart
29 lines
782 B
Dart
class PodcastLocal {
|
|
final String title;
|
|
final String imageUrl;
|
|
final String rssUrl;
|
|
final String author;
|
|
|
|
final String primaryColor;
|
|
final String id;
|
|
final String imagePath;
|
|
final String provider;
|
|
final String link;
|
|
|
|
final String description;
|
|
int upateCount;
|
|
int episodeCount;
|
|
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;
|
|
}
|