1
0
mirror of https://github.com/stonega/tsacdop synced 2025-01-24 20:52:56 +01:00
tsacdop-podcast-app-android/lib/webfeed/domain/media/community.dart
stonegate 1021f2eea4 modified: lib/class/audiostate.dart
new file:   lib/class/fireside_data.dart
	modified:   lib/episodes/episodedetail.dart
	modified:   lib/home/appbar/addpodcast.dart
	modified:   lib/home/audioplayer.dart
	modified:   lib/local_storage/key_value_storage.dart
	modified:   lib/local_storage/sqflite_localpodcast.dart
	modified:   lib/podcasts/podcastdetail.dart
	modified:   lib/webfeed/domain/atom_feed.dart
	modified:   lib/webfeed/domain/atom_item.dart
	modified:   lib/webfeed/domain/atom_person.dart
	modified:   lib/webfeed/domain/atom_source.dart
	modified:   lib/webfeed/domain/media/community.dart
	modified:   lib/webfeed/domain/media/embed.dart
	modified:   lib/webfeed/domain/media/group.dart
	modified:   lib/webfeed/domain/media/media.dart
	modified:   lib/webfeed/domain/media/scene.dart
	modified:   pubspec.lock
	modified:   pubspec.yaml
2020-02-26 17:54:59 +08:00

35 lines
882 B
Dart

import 'package:tsacdop/webfeed/domain/media/star_rating.dart';
import 'package:tsacdop/webfeed/domain/media/statistics.dart';
import 'package:tsacdop/webfeed/domain/media/tags.dart';
import 'package:tsacdop/webfeed/util/helpers.dart';
import 'package:xml/xml.dart';
class Community {
final StarRating starRating;
final Statistics statistics;
final Tags tags;
Community({
this.starRating,
this.statistics,
this.tags,
});
factory Community.parse(XmlElement element) {
if (element == null) {
return null;
}
return new Community(
starRating: new StarRating.parse(
findElementOrNull(element, "media:starRating"),
),
statistics: new Statistics.parse(
findElementOrNull(element, "media:statistics"),
),
tags: new Tags.parse(
findElementOrNull(element, "media:tags"),
),
);
}
}