mirror of
https://github.com/stonega/tsacdop
synced 2024-12-16 02:11:44 +01:00
31 lines
794 B
Dart
31 lines
794 B
Dart
import 'dart:ui';
|
|
|
|
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 => hashValues(id, rssUrl);
|
|
}
|