import 'package:equatable/equatable.dart';
import 'package:zhiying_base_widget/widgets/home/home_banner/model/HomeBannerModel.dart';

abstract class HomeBannerState extends Equatable {
  const HomeBannerState();
}

/// 初始化状态
class InitialHomeBannerState extends HomeBannerState {
  @override
  List<Object> get props => [];
}

/// 数据加载完毕状态
class HomeBannerLoadedState extends HomeBannerState {
  final HomeBannerModel model;

  const HomeBannerLoadedState({this.model});

  @override
  List<Object> get props => [this.model];
}

/// 缓存数据加载完毕
class HomeBannerCacheState extends HomeBannerState {
  final HomeBannerModel model;

  const HomeBannerCacheState({this.model});

  @override
  List<Object> get props => [this.model];
}

/// 数据加载失败
class HomeBannerErrorState extends HomeBannerState {
  @override
  List<Object> get props => [];
}
