You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
373 B
Dart
21 lines
373 B
Dart
|
3 years ago
|
enum SupportedLanguagesEnum { ar, en }
|
||
|
|
|
||
|
|
enum RequestMethod { get, post, put, delete }
|
||
|
|
|
||
|
|
enum ApiExceptionsEnum {
|
||
|
|
badRequest(10),
|
||
|
|
unauthorized(10),
|
||
|
|
forbidden(10),
|
||
|
|
notFound(10),
|
||
|
|
internalServerError(10),
|
||
|
|
upgradeRequired(10),
|
||
|
|
badResponseFormat(10),
|
||
|
|
other(10),
|
||
|
|
timeout(10),
|
||
|
|
unknown(10);
|
||
|
|
|
||
|
|
final int statusCode;
|
||
|
|
|
||
|
|
const ApiExceptionsEnum(this.statusCode);
|
||
|
|
}
|