You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-07-04 05:50:38 +02:00
Merge branch 'main' into feat/notification-email-template
This commit is contained in:
@ -16,6 +16,8 @@ class ServerStatsResponseDto {
|
||||
this.photos = 0,
|
||||
this.usage = 0,
|
||||
this.usageByUser = const [],
|
||||
this.usagePhotos = 0,
|
||||
this.usageVideos = 0,
|
||||
this.videos = 0,
|
||||
});
|
||||
|
||||
@ -25,6 +27,10 @@ class ServerStatsResponseDto {
|
||||
|
||||
List<UsageByUserDto> usageByUser;
|
||||
|
||||
int usagePhotos;
|
||||
|
||||
int usageVideos;
|
||||
|
||||
int videos;
|
||||
|
||||
@override
|
||||
@ -32,6 +38,8 @@ class ServerStatsResponseDto {
|
||||
other.photos == photos &&
|
||||
other.usage == usage &&
|
||||
_deepEquality.equals(other.usageByUser, usageByUser) &&
|
||||
other.usagePhotos == usagePhotos &&
|
||||
other.usageVideos == usageVideos &&
|
||||
other.videos == videos;
|
||||
|
||||
@override
|
||||
@ -40,16 +48,20 @@ class ServerStatsResponseDto {
|
||||
(photos.hashCode) +
|
||||
(usage.hashCode) +
|
||||
(usageByUser.hashCode) +
|
||||
(usagePhotos.hashCode) +
|
||||
(usageVideos.hashCode) +
|
||||
(videos.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'ServerStatsResponseDto[photos=$photos, usage=$usage, usageByUser=$usageByUser, videos=$videos]';
|
||||
String toString() => 'ServerStatsResponseDto[photos=$photos, usage=$usage, usageByUser=$usageByUser, usagePhotos=$usagePhotos, usageVideos=$usageVideos, videos=$videos]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
json[r'photos'] = this.photos;
|
||||
json[r'usage'] = this.usage;
|
||||
json[r'usageByUser'] = this.usageByUser;
|
||||
json[r'usagePhotos'] = this.usagePhotos;
|
||||
json[r'usageVideos'] = this.usageVideos;
|
||||
json[r'videos'] = this.videos;
|
||||
return json;
|
||||
}
|
||||
@ -66,6 +78,8 @@ class ServerStatsResponseDto {
|
||||
photos: mapValueOfType<int>(json, r'photos')!,
|
||||
usage: mapValueOfType<int>(json, r'usage')!,
|
||||
usageByUser: UsageByUserDto.listFromJson(json[r'usageByUser']),
|
||||
usagePhotos: mapValueOfType<int>(json, r'usagePhotos')!,
|
||||
usageVideos: mapValueOfType<int>(json, r'usageVideos')!,
|
||||
videos: mapValueOfType<int>(json, r'videos')!,
|
||||
);
|
||||
}
|
||||
@ -117,6 +131,8 @@ class ServerStatsResponseDto {
|
||||
'photos',
|
||||
'usage',
|
||||
'usageByUser',
|
||||
'usagePhotos',
|
||||
'usageVideos',
|
||||
'videos',
|
||||
};
|
||||
}
|
||||
|
18
mobile/openapi/lib/model/usage_by_user_dto.dart
generated
18
mobile/openapi/lib/model/usage_by_user_dto.dart
generated
@ -16,6 +16,8 @@ class UsageByUserDto {
|
||||
required this.photos,
|
||||
required this.quotaSizeInBytes,
|
||||
required this.usage,
|
||||
required this.usagePhotos,
|
||||
required this.usageVideos,
|
||||
required this.userId,
|
||||
required this.userName,
|
||||
required this.videos,
|
||||
@ -27,6 +29,10 @@ class UsageByUserDto {
|
||||
|
||||
int usage;
|
||||
|
||||
int usagePhotos;
|
||||
|
||||
int usageVideos;
|
||||
|
||||
String userId;
|
||||
|
||||
String userName;
|
||||
@ -38,6 +44,8 @@ class UsageByUserDto {
|
||||
other.photos == photos &&
|
||||
other.quotaSizeInBytes == quotaSizeInBytes &&
|
||||
other.usage == usage &&
|
||||
other.usagePhotos == usagePhotos &&
|
||||
other.usageVideos == usageVideos &&
|
||||
other.userId == userId &&
|
||||
other.userName == userName &&
|
||||
other.videos == videos;
|
||||
@ -48,12 +56,14 @@ class UsageByUserDto {
|
||||
(photos.hashCode) +
|
||||
(quotaSizeInBytes == null ? 0 : quotaSizeInBytes!.hashCode) +
|
||||
(usage.hashCode) +
|
||||
(usagePhotos.hashCode) +
|
||||
(usageVideos.hashCode) +
|
||||
(userId.hashCode) +
|
||||
(userName.hashCode) +
|
||||
(videos.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'UsageByUserDto[photos=$photos, quotaSizeInBytes=$quotaSizeInBytes, usage=$usage, userId=$userId, userName=$userName, videos=$videos]';
|
||||
String toString() => 'UsageByUserDto[photos=$photos, quotaSizeInBytes=$quotaSizeInBytes, usage=$usage, usagePhotos=$usagePhotos, usageVideos=$usageVideos, userId=$userId, userName=$userName, videos=$videos]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
@ -64,6 +74,8 @@ class UsageByUserDto {
|
||||
// json[r'quotaSizeInBytes'] = null;
|
||||
}
|
||||
json[r'usage'] = this.usage;
|
||||
json[r'usagePhotos'] = this.usagePhotos;
|
||||
json[r'usageVideos'] = this.usageVideos;
|
||||
json[r'userId'] = this.userId;
|
||||
json[r'userName'] = this.userName;
|
||||
json[r'videos'] = this.videos;
|
||||
@ -82,6 +94,8 @@ class UsageByUserDto {
|
||||
photos: mapValueOfType<int>(json, r'photos')!,
|
||||
quotaSizeInBytes: mapValueOfType<int>(json, r'quotaSizeInBytes'),
|
||||
usage: mapValueOfType<int>(json, r'usage')!,
|
||||
usagePhotos: mapValueOfType<int>(json, r'usagePhotos')!,
|
||||
usageVideos: mapValueOfType<int>(json, r'usageVideos')!,
|
||||
userId: mapValueOfType<String>(json, r'userId')!,
|
||||
userName: mapValueOfType<String>(json, r'userName')!,
|
||||
videos: mapValueOfType<int>(json, r'videos')!,
|
||||
@ -135,6 +149,8 @@ class UsageByUserDto {
|
||||
'photos',
|
||||
'quotaSizeInBytes',
|
||||
'usage',
|
||||
'usagePhotos',
|
||||
'usageVideos',
|
||||
'userId',
|
||||
'userName',
|
||||
'videos',
|
||||
|
Reference in New Issue
Block a user