You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.6 KiB
78 lines
1.6 KiB
import 'package:bytedesk_kefu/model/helpCategory.dart';
|
|
import 'package:equatable/equatable.dart';
|
|
|
|
abstract class FeedbackState extends Equatable {
|
|
FeedbackState();
|
|
|
|
@override
|
|
List<Object> get props => [];
|
|
}
|
|
|
|
/// UnInitialized
|
|
class UnFeedbackState extends FeedbackState {
|
|
UnFeedbackState();
|
|
|
|
@override
|
|
String toString() => 'UnFeedbackState';
|
|
}
|
|
|
|
class FeedbackEmpty extends FeedbackState {
|
|
@override
|
|
String toString() => 'FeedbackEmpty';
|
|
}
|
|
|
|
class FeedbackLoading extends FeedbackState {
|
|
@override
|
|
String toString() => 'FeedbackLoading';
|
|
}
|
|
|
|
class FeedbackLoadError extends FeedbackState {
|
|
@override
|
|
String toString() => 'FeedbackLoadError';
|
|
}
|
|
|
|
/// Initialized
|
|
class FeedbackCategoryState extends FeedbackState {
|
|
final List<HelpCategory> categoryList;
|
|
|
|
FeedbackCategoryState(this.categoryList) : super();
|
|
|
|
@override
|
|
String toString() => 'GetFeedbackCategoryState';
|
|
}
|
|
|
|
class FeedbackSubmiting extends FeedbackState {
|
|
@override
|
|
String toString() => 'FeedbackSubmiting';
|
|
}
|
|
|
|
class FeedbackSubmitSuccess extends FeedbackState {
|
|
@override
|
|
String toString() => 'FeedbackSubmitSuccess';
|
|
}
|
|
|
|
class FeedbackSubmitError extends FeedbackState {
|
|
@override
|
|
String toString() => 'FeedbackSubmitError';
|
|
}
|
|
|
|
class ImageUploading extends FeedbackState {
|
|
@override
|
|
String toString() => 'ImageUploading';
|
|
}
|
|
|
|
class UploadImageSuccess extends FeedbackState {
|
|
//
|
|
final String url;
|
|
UploadImageSuccess(this.url);
|
|
@override
|
|
List<Object> get props => [url];
|
|
@override
|
|
String toString() => 'UploadImageSuccess { logo: $url }';
|
|
}
|
|
|
|
class UpLoadImageError extends FeedbackState {
|
|
@override
|
|
String toString() => 'UpLoadImageError';
|
|
}
|