2023-12-30 21:23:42 +00:00
|
|
|
import 'package:aurcache/api/builds.dart';
|
|
|
|
|
|
|
|
import '../api/API.dart';
|
|
|
|
import '../models/build.dart';
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|