tsacdop-podcast-app-android/lib/type/podcastlocal.dart

29 lines
782 B
Dart
Raw Normal View History

2020-02-09 13:29:09 +01:00
class PodcastLocal {
final String title;
final String imageUrl;
final String rssUrl;
final String author;
2020-02-09 13:29:09 +01:00
final String primaryColor;
final String id;
final String imagePath;
final String provider;
final String link;
final String description;
2020-03-31 18:36:20 +02:00
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;
}