import '../../domain/entities/profile_entity.dart';

abstract class ProfileLoadStatus {}

class ProfileLoadInitial extends ProfileLoadStatus {}

class ProfileLoadLoading extends ProfileLoadStatus {}

class ProfileLoadLoaded extends ProfileLoadStatus {
  final ProfileEntity profile;
  ProfileLoadLoaded(this.profile);
}

class ProfileLoadError extends ProfileLoadStatus {
  final String message;
  ProfileLoadError(this.message);
}

/// وضعیتِ ذخیره‌ی ویرایش پروفایل.
abstract class ProfileSaveStatus {}

class ProfileSaveIdle extends ProfileSaveStatus {}

class ProfileSaveLoading extends ProfileSaveStatus {}

class ProfileSaveSuccess extends ProfileSaveStatus {}

class ProfileSaveError extends ProfileSaveStatus {
  final String message;
  ProfileSaveError(this.message);
}
