1
0
mirror of https://github.com/stonega/tsacdop synced 2024-12-17 02:39:28 +01:00
tsacdop-podcast-app-android/lib/type/podcastlocal.dart
stonegate f4b56938ae Remove listened indicator and increase the color difference
Improve download manage page, support fliters
2020-06-11 00:36:53 +08:00

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;
}