import '../../../model/car.dart';

abstract class CarEvents {}

class CarLoad extends CarEvents {
  String teamId;

  /// If [force] is true the API is always called, bypassing the cache.
  /// Use this for pull-to-refresh. Defaults to false.
  bool force;

  CarLoad({required this.teamId, this.force = false});
}

class CarEdit extends CarEvents {
  Car newCar;
  String teamId;

  CarEdit({required this.newCar, required this.teamId});
}

class CarAdd extends CarEvents {
  String teamId;
  String plate;

  CarAdd({required this.teamId, required this.plate});
}

class CarDelete extends CarEvents {
  String carId;
  String teamId;

  CarDelete({required this.carId, required this.teamId});
}