mirror of
https://github.com/stonega/tsacdop
synced 2025-01-24 20:52:56 +01:00
25 lines
479 B
Dart
25 lines
479 B
Dart
import 'package:xml/xml.dart';
|
|
|
|
class Thumbnail {
|
|
final String url;
|
|
final String width;
|
|
final String height;
|
|
final String time;
|
|
|
|
Thumbnail({
|
|
this.url,
|
|
this.width,
|
|
this.height,
|
|
this.time,
|
|
});
|
|
|
|
factory Thumbnail.parse(XmlElement element) {
|
|
return new Thumbnail(
|
|
url: element.getAttribute("url"),
|
|
width: element.getAttribute("width"),
|
|
height: element.getAttribute("height"),
|
|
time: element.getAttribute("time"),
|
|
);
|
|
}
|
|
}
|