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