aurcache/frontend/lib/models/build.dart
lukas-heiligenbrunner 80e2299dc8 sync every hour the latest version of packages with aur
display current version and if outdated in ui
display correct time in output log
2024-01-01 23:07:52 +01:00

27 lines
646 B
Dart

class Build {
final int id;
final String pkg_name;
final String version;
final int status;
final int? start_time, end_time;
Build(
{required this.id,
required this.pkg_name,
required this.version,
required this.start_time,
required this.end_time,
required this.status});
factory Build.fromJson(Map<String, dynamic> json) {
return Build(
id: json["id"] as int,
status: json["status"] as int,
start_time: json["start_time"] as int?,
end_time: json["end_time"] as int?,
pkg_name: json["pkg_name"] as String,
version: json["version"] as String,
);
}
}