mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Fix fileMetadataSize type of nextcloud album item
This commit is contained in:
parent
7417dd9533
commit
24f1281478
1 changed files with 6 additions and 5 deletions
|
@ -5,7 +5,6 @@ import 'package:flutter/foundation.dart';
|
||||||
import 'package:np_api/src/entity/entity.dart';
|
import 'package:np_api/src/entity/entity.dart';
|
||||||
import 'package:np_api/src/entity/parser.dart';
|
import 'package:np_api/src/entity/parser.dart';
|
||||||
import 'package:np_common/log.dart';
|
import 'package:np_common/log.dart';
|
||||||
import 'package:np_common/type.dart';
|
|
||||||
import 'package:xml/xml.dart';
|
import 'package:xml/xml.dart';
|
||||||
|
|
||||||
class NcAlbumItemParser extends XmlResponseParser {
|
class NcAlbumItemParser extends XmlResponseParser {
|
||||||
|
@ -25,7 +24,7 @@ class NcAlbumItemParser extends XmlResponseParser {
|
||||||
DateTime? lastModified;
|
DateTime? lastModified;
|
||||||
bool? hasPreview;
|
bool? hasPreview;
|
||||||
bool? favorite;
|
bool? favorite;
|
||||||
JsonObj? fileMetadataSize;
|
Object? fileMetadataSize;
|
||||||
// unclear what the value types are
|
// unclear what the value types are
|
||||||
// "nc:face-detections"
|
// "nc:face-detections"
|
||||||
// "nc:realpath"
|
// "nc:realpath"
|
||||||
|
@ -70,7 +69,9 @@ class NcAlbumItemParser extends XmlResponseParser {
|
||||||
lastModified: lastModified,
|
lastModified: lastModified,
|
||||||
hasPreview: hasPreview,
|
hasPreview: hasPreview,
|
||||||
favorite: favorite,
|
favorite: favorite,
|
||||||
fileMetadataSize: fileMetadataSize,
|
fileMetadataSize: fileMetadataSize is Map
|
||||||
|
? fileMetadataSize.cast<String, dynamic>()
|
||||||
|
: null,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -119,7 +120,7 @@ class _PropParser {
|
||||||
int? get fileId => _fileId;
|
int? get fileId => _fileId;
|
||||||
bool? get favorite => _favorite;
|
bool? get favorite => _favorite;
|
||||||
bool? get hasPreview => _hasPreview;
|
bool? get hasPreview => _hasPreview;
|
||||||
JsonObj? get fileMetadataSize => _fileMetadataSize;
|
Object? get fileMetadataSize => _fileMetadataSize;
|
||||||
|
|
||||||
final Map<String, String> namespaces;
|
final Map<String, String> namespaces;
|
||||||
|
|
||||||
|
@ -130,7 +131,7 @@ class _PropParser {
|
||||||
int? _fileId;
|
int? _fileId;
|
||||||
bool? _favorite;
|
bool? _favorite;
|
||||||
bool? _hasPreview;
|
bool? _hasPreview;
|
||||||
JsonObj? _fileMetadataSize;
|
Object? _fileMetadataSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<NcAlbumItem> _parseNcAlbumItemsIsolate(String response) {
|
List<NcAlbumItem> _parseNcAlbumItemsIsolate(String response) {
|
||||||
|
|
Loading…
Reference in a new issue