You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-08-10 23:22:22 +02:00
fix(server): add paused property to JobCountsDto (#2112)
This commit is contained in:
1
mobile/openapi/doc/JobCountsDto.md
generated
1
mobile/openapi/doc/JobCountsDto.md
generated
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
||||
**failed** | **int** | |
|
||||
**delayed** | **int** | |
|
||||
**waiting** | **int** | |
|
||||
**paused** | **int** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
14
mobile/openapi/lib/model/job_counts_dto.dart
generated
14
mobile/openapi/lib/model/job_counts_dto.dart
generated
@@ -18,6 +18,7 @@ class JobCountsDto {
|
||||
required this.failed,
|
||||
required this.delayed,
|
||||
required this.waiting,
|
||||
required this.paused,
|
||||
});
|
||||
|
||||
int active;
|
||||
@@ -30,13 +31,16 @@ class JobCountsDto {
|
||||
|
||||
int waiting;
|
||||
|
||||
int paused;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is JobCountsDto &&
|
||||
other.active == active &&
|
||||
other.completed == completed &&
|
||||
other.failed == failed &&
|
||||
other.delayed == delayed &&
|
||||
other.waiting == waiting;
|
||||
other.waiting == waiting &&
|
||||
other.paused == paused;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
@@ -45,10 +49,11 @@ class JobCountsDto {
|
||||
(completed.hashCode) +
|
||||
(failed.hashCode) +
|
||||
(delayed.hashCode) +
|
||||
(waiting.hashCode);
|
||||
(waiting.hashCode) +
|
||||
(paused.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'JobCountsDto[active=$active, completed=$completed, failed=$failed, delayed=$delayed, waiting=$waiting]';
|
||||
String toString() => 'JobCountsDto[active=$active, completed=$completed, failed=$failed, delayed=$delayed, waiting=$waiting, paused=$paused]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
@@ -57,6 +62,7 @@ class JobCountsDto {
|
||||
json[r'failed'] = this.failed;
|
||||
json[r'delayed'] = this.delayed;
|
||||
json[r'waiting'] = this.waiting;
|
||||
json[r'paused'] = this.paused;
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -84,6 +90,7 @@ class JobCountsDto {
|
||||
failed: mapValueOfType<int>(json, r'failed')!,
|
||||
delayed: mapValueOfType<int>(json, r'delayed')!,
|
||||
waiting: mapValueOfType<int>(json, r'waiting')!,
|
||||
paused: mapValueOfType<int>(json, r'paused')!,
|
||||
);
|
||||
}
|
||||
return null;
|
||||
@@ -138,6 +145,7 @@ class JobCountsDto {
|
||||
'failed',
|
||||
'delayed',
|
||||
'waiting',
|
||||
'paused',
|
||||
};
|
||||
}
|
||||
|
||||
|
5
mobile/openapi/test/job_counts_dto_test.dart
generated
5
mobile/openapi/test/job_counts_dto_test.dart
generated
@@ -41,6 +41,11 @@ void main() {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int paused
|
||||
test('to test the property `paused`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user