THATMobile/alice/lib/model/alice_sort_option.dart
2026-02-26 10:39:42 +07:00

26 lines
602 B
Dart

///Available sort options in inspector UI.
enum AliceSortOption {
time,
responseTime,
responseCode,
responseSize,
endpoint,
}
extension AliceSortOptionsExtension on AliceSortOption {
String get name {
switch (this) {
case AliceSortOption.time:
return "Create time (default)";
case AliceSortOption.responseTime:
return "Response time";
case AliceSortOption.responseCode:
return "Response code";
case AliceSortOption.responseSize:
return "Response size";
case AliceSortOption.endpoint:
return "Endpoint";
}
}
}