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.
58 lines
1.2 KiB
58 lines
1.2 KiB
3 years ago
|
import 'package:bytedesk_kefu/model/helpCategory.dart';
|
||
|
import 'package:equatable/equatable.dart';
|
||
|
|
||
|
abstract class TicketState extends Equatable {
|
||
|
TicketState();
|
||
|
|
||
|
@override
|
||
|
List<Object> get props => [];
|
||
|
}
|
||
|
|
||
|
/// UnInitialized
|
||
|
class UnTicketState extends TicketState {
|
||
|
UnTicketState();
|
||
|
|
||
|
@override
|
||
|
String toString() => 'UnTicketState';
|
||
|
}
|
||
|
|
||
|
class TicketEmpty extends TicketState {
|
||
|
@override
|
||
|
String toString() => 'TicketEmpty';
|
||
|
}
|
||
|
|
||
|
class TicketLoading extends TicketState {
|
||
|
@override
|
||
|
String toString() => 'TicketLoading';
|
||
|
}
|
||
|
|
||
|
class TicketLoadError extends TicketState {
|
||
|
@override
|
||
|
String toString() => 'TicketLoadError';
|
||
|
}
|
||
|
|
||
|
/// Initialized
|
||
|
class TicketCategoryState extends TicketState {
|
||
|
final List<HelpCategory> categoryList;
|
||
|
|
||
|
TicketCategoryState(this.categoryList) : super();
|
||
|
|
||
|
@override
|
||
|
String toString() => 'GetTicketCategoryState';
|
||
|
}
|
||
|
|
||
|
class UploadImageSuccess extends TicketState {
|
||
|
//
|
||
|
final String url;
|
||
|
UploadImageSuccess(this.url);
|
||
|
@override
|
||
|
List<Object> get props => [url];
|
||
|
@override
|
||
|
String toString() => 'UploadImageSuccess { logo: $url }';
|
||
|
}
|
||
|
|
||
|
class UpLoadImageError extends TicketState {
|
||
|
@override
|
||
|
String toString() => 'UpLoadImageError';
|
||
|
}
|