2023-12-30 21:23:42 +00:00
|
|
|
import 'package:aurcache/api/builds.dart';
|
|
|
|
|
2024-02-16 21:37:35 +00:00
|
|
|
import '../../api/API.dart';
|
|
|
|
import '../../models/build.dart';
|
2023-12-30 21:23:42 +00:00
|
|
|
import 'BaseProvider.dart';
|
|
|
|
|
|
|
|
class BuildDTO {
|
|
|
|
final int buildID;
|
|
|
|
|
|
|
|
BuildDTO({required this.buildID});
|
|
|
|
}
|
|
|
|
|
|
|
|
class BuildProvider extends BaseProvider<Build, BuildDTO> {
|
|
|
|
@override
|
|
|
|
loadFuture(context, {dto}) {
|
|
|
|
// todo search solution to force an exising dto
|
|
|
|
data = API.getBuild(dto!.buildID);
|
2024-02-11 22:05:39 +00:00
|
|
|
this.dto = dto;
|
2023-12-30 21:23:42 +00:00
|
|
|
}
|
|
|
|
}
|