@ -57,54 +57,64 @@ const AssetSchema = CollectionSchema(
name: r'isFavorite' ,
name: r'isFavorite' ,
type: IsarType . bool ,
type: IsarType . bool ,
) ,
) ,
r'is Trashed ': PropertySchema (
r'is Offline ': PropertySchema (
id: 8 ,
id: 8 ,
name: r'isOffline' ,
type: IsarType . bool ,
) ,
r'isReadOnly' : PropertySchema (
id: 9 ,
name: r'isReadOnly' ,
type: IsarType . bool ,
) ,
r'isTrashed' : PropertySchema (
id: 10 ,
name: r'isTrashed' ,
name: r'isTrashed' ,
type: IsarType . bool ,
type: IsarType . bool ,
) ,
) ,
r'livePhotoVideoId' : PropertySchema (
r'livePhotoVideoId' : PropertySchema (
id: 9 ,
id: 11 ,
name: r'livePhotoVideoId' ,
name: r'livePhotoVideoId' ,
type: IsarType . string ,
type: IsarType . string ,
) ,
) ,
r'localId' : PropertySchema (
r'localId' : PropertySchema (
id: 10 ,
id: 1 2 ,
name: r'localId' ,
name: r'localId' ,
type: IsarType . string ,
type: IsarType . string ,
) ,
) ,
r'ownerId' : PropertySchema (
r'ownerId' : PropertySchema (
id: 1 1 ,
id: 1 3 ,
name: r'ownerId' ,
name: r'ownerId' ,
type: IsarType . long ,
type: IsarType . long ,
) ,
) ,
r'remoteId' : PropertySchema (
r'remoteId' : PropertySchema (
id: 1 2 ,
id: 1 4 ,
name: r'remoteId' ,
name: r'remoteId' ,
type: IsarType . string ,
type: IsarType . string ,
) ,
) ,
r'stackCount' : PropertySchema (
r'stackCount' : PropertySchema (
id: 1 3 ,
id: 1 5 ,
name: r'stackCount' ,
name: r'stackCount' ,
type: IsarType . long ,
type: IsarType . long ,
) ,
) ,
r'stackParentId' : PropertySchema (
r'stackParentId' : PropertySchema (
id: 1 4 ,
id: 1 6 ,
name: r'stackParentId' ,
name: r'stackParentId' ,
type: IsarType . string ,
type: IsarType . string ,
) ,
) ,
r'type' : PropertySchema (
r'type' : PropertySchema (
id: 1 5 ,
id: 1 7 ,
name: r'type' ,
name: r'type' ,
type: IsarType . byte ,
type: IsarType . byte ,
enumMap: _AssettypeEnumValueMap ,
enumMap: _AssettypeEnumValueMap ,
) ,
) ,
r'updatedAt' : PropertySchema (
r'updatedAt' : PropertySchema (
id: 1 6 ,
id: 1 8 ,
name: r'updatedAt' ,
name: r'updatedAt' ,
type: IsarType . dateTime ,
type: IsarType . dateTime ,
) ,
) ,
r'width' : PropertySchema (
r'width' : PropertySchema (
id: 1 7 ,
id: 1 9 ,
name: r'width' ,
name: r'width' ,
type: IsarType . int ,
type: IsarType . int ,
)
)
@ -217,16 +227,18 @@ void _assetSerialize(
writer . writeInt ( offsets [ 5 ] , object . height ) ;
writer . writeInt ( offsets [ 5 ] , object . height ) ;
writer . writeBool ( offsets [ 6 ] , object . isArchived ) ;
writer . writeBool ( offsets [ 6 ] , object . isArchived ) ;
writer . writeBool ( offsets [ 7 ] , object . isFavorite ) ;
writer . writeBool ( offsets [ 7 ] , object . isFavorite ) ;
writer . writeBool ( offsets [ 8 ] , object . isTrashed ) ;
writer . writeBool ( offsets [ 8 ] , object . isOffline ) ;
writer . writeString ( offsets [ 9 ] , object . livePhotoVideoId ) ;
writer . writeBool ( offsets [ 9 ] , object . isReadOnly ) ;
writer . writeString ( offsets [ 10 ] , object . localId ) ;
writer . writeBool ( offsets [ 10 ] , object . isTrashed ) ;
writer . writeLong ( offsets [ 11 ] , object . ownerId ) ;
writer . writeString ( offsets [ 11 ] , object . livePhotoVideoId ) ;
writer . writeString ( offsets [ 12 ] , object . remoteId ) ;
writer . writeString ( offsets [ 12 ] , object . localId ) ;
writer . writeLong ( offsets [ 13 ] , object . stackCount ) ;
writer . writeLong ( offsets [ 13 ] , object . ownerId ) ;
writer . writeString ( offsets [ 14 ] , object . stackParentId ) ;
writer . writeString ( offsets [ 14 ] , object . remoteId ) ;
writer . writeByte ( offsets [ 15 ] , object . type . index ) ;
writer . writeLong ( offsets [ 15 ] , object . stackCount ) ;
writer . writeDateTime ( offsets [ 16 ] , object . updatedAt ) ;
writer . writeString ( offsets [ 16 ] , object . stackParentId ) ;
writer . writeInt ( offsets [ 17 ] , object . width ) ;
writer . writeByte ( offsets [ 17 ] , object . type . index ) ;
writer . writeDateTime ( offsets [ 18 ] , object . updatedAt ) ;
writer . writeInt ( offsets [ 19 ] , object . width ) ;
}
}
Asset _assetDeserialize (
Asset _assetDeserialize (
@ -243,19 +255,21 @@ Asset _assetDeserialize(
fileName: reader . readString ( offsets [ 4 ] ) ,
fileName: reader . readString ( offsets [ 4 ] ) ,
height: reader . readIntOrNull ( offsets [ 5 ] ) ,
height: reader . readIntOrNull ( offsets [ 5 ] ) ,
id: id ,
id: id ,
isArchived: reader . readBool ( offsets [ 6 ] ) ,
isArchived: reader . readBoolOrNull ( offsets [ 6 ] ) ? ? false ,
isFavorite: reader . readBool ( offsets [ 7 ] ) ,
isFavorite: reader . readBoolOrNull ( offsets [ 7 ] ) ? ? false ,
isTrashed: reader . readBool ( offsets [ 8 ] ) ,
isOffline: reader . readBoolOrNull ( offsets [ 8 ] ) ? ? false ,
livePhotoVideoId: reader . readStringOrNull ( offsets [ 9 ] ) ,
isReadOnly: reader . readBoolOrNull ( offsets [ 9 ] ) ? ? false ,
localId: reader . readStringOrNull ( offsets [ 10 ] ) ,
isTrashed: reader . readBoolOrNull ( offsets [ 10 ] ) ? ? false ,
ownerId: reader . readLong ( offsets [ 11 ] ) ,
livePhotoVideoId: reader . readStringOrNull ( offsets [ 11 ] ) ,
remoteId: reader . readStringOrNull ( offsets [ 12 ] ) ,
localId: reader . readStringOrNull ( offsets [ 12 ] ) ,
stackCount: reader . readLongOrNull ( offsets [ 13 ] ) ,
ownerId: reader . readLong ( offsets [ 13 ] ) ,
stackParentId: reader . readStringOrNull ( offsets [ 14 ] ) ,
remoteId: reader . readStringOrNull ( offsets [ 14 ] ) ,
type: _AssettypeValueEnumMap [ reader . readByteOrNull ( offsets [ 15 ] ) ] ? ?
stackCount: reader . readLongOrNull ( offsets [ 15 ] ) ,
stackParentId: reader . readStringOrNull ( offsets [ 16 ] ) ,
type: _AssettypeValueEnumMap [ reader . readByteOrNull ( offsets [ 17 ] ) ] ? ?
AssetType . other ,
AssetType . other ,
updatedAt: reader . readDateTime ( offsets [ 16 ] ) ,
updatedAt: reader . readDateTime ( offsets [ 1 8 ] ) ,
width: reader . readIntOrNull ( offsets [ 1 7 ] ) ,
width: reader . readIntOrNull ( offsets [ 1 9 ] ) ,
) ;
) ;
return object ;
return object ;
}
}
@ -280,29 +294,33 @@ P _assetDeserializeProp<P>(
case 5 :
case 5 :
return ( reader . readIntOrNull ( offset ) ) as P ;
return ( reader . readIntOrNull ( offset ) ) as P ;
case 6 :
case 6 :
return ( reader . readBool ( offset ) ) as P ;
return ( reader . readBool OrNull ( offset ) ? ? false ) as P ;
case 7 :
case 7 :
return ( reader . readBool ( offset ) ) as P ;
return ( reader . readBool OrNull ( offset ) ? ? false ) as P ;
case 8 :
case 8 :
return ( reader . readBool ( offset ) ) as P ;
return ( reader . readBool OrNull ( offset ) ? ? false ) as P ;
case 9 :
case 9 :
return ( reader . read StringOrNull( offset ) ) as P ;
return ( reader . read BoolOrNull( offset ) ? ? false ) as P ;
case 10 :
case 10 :
return ( reader . read StringOrNull( offset ) ) as P ;
return ( reader . read BoolOrNull( offset ) ? ? false ) as P ;
case 11 :
case 11 :
return ( reader . read Long ( offset ) ) as P ;
return ( reader . read StringOrNull ( offset ) ) as P ;
case 12 :
case 12 :
return ( reader . readStringOrNull ( offset ) ) as P ;
return ( reader . readStringOrNull ( offset ) ) as P ;
case 13 :
case 13 :
return ( reader . readLong OrNull ( offset ) ) as P ;
return ( reader . readLong ( offset ) ) as P ;
case 14 :
case 14 :
return ( reader . readStringOrNull ( offset ) ) as P ;
return ( reader . readStringOrNull ( offset ) ) as P ;
case 15 :
case 15 :
return ( reader . readLongOrNull ( offset ) ) as P ;
case 16 :
return ( reader . readStringOrNull ( offset ) ) as P ;
case 17 :
return ( _AssettypeValueEnumMap [ reader . readByteOrNull ( offset ) ] ? ?
return ( _AssettypeValueEnumMap [ reader . readByteOrNull ( offset ) ] ? ?
AssetType . other ) as P ;
AssetType . other ) as P ;
case 16 :
case 1 8 :
return ( reader . readDateTime ( offset ) ) as P ;
return ( reader . readDateTime ( offset ) ) as P ;
case 1 7 :
case 1 9 :
return ( reader . readIntOrNull ( offset ) ) as P ;
return ( reader . readIntOrNull ( offset ) ) as P ;
default :
default :
throw IsarError ( ' Unknown property with id $ propertyId ' ) ;
throw IsarError ( ' Unknown property with id $ propertyId ' ) ;
@ -1323,6 +1341,26 @@ extension AssetQueryFilter on QueryBuilder<Asset, Asset, QFilterCondition> {
} ) ;
} ) ;
}
}
QueryBuilder < Asset , Asset , QAfterFilterCondition > isOfflineEqualTo (
bool value ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addFilterCondition ( FilterCondition . equalTo (
property: r'isOffline' ,
value: value ,
) ) ;
} ) ;
}
QueryBuilder < Asset , Asset , QAfterFilterCondition > isReadOnlyEqualTo (
bool value ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addFilterCondition ( FilterCondition . equalTo (
property: r'isReadOnly' ,
value: value ,
) ) ;
} ) ;
}
QueryBuilder < Asset , Asset , QAfterFilterCondition > isTrashedEqualTo (
QueryBuilder < Asset , Asset , QAfterFilterCondition > isTrashedEqualTo (
bool value ) {
bool value ) {
return QueryBuilder . apply ( this , ( query ) {
return QueryBuilder . apply ( this , ( query ) {
@ -2316,6 +2354,30 @@ extension AssetQuerySortBy on QueryBuilder<Asset, Asset, QSortBy> {
} ) ;
} ) ;
}
}
QueryBuilder < Asset , Asset , QAfterSortBy > sortByIsOffline ( ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addSortBy ( r'isOffline' , Sort . asc ) ;
} ) ;
}
QueryBuilder < Asset , Asset , QAfterSortBy > sortByIsOfflineDesc ( ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addSortBy ( r'isOffline' , Sort . desc ) ;
} ) ;
}
QueryBuilder < Asset , Asset , QAfterSortBy > sortByIsReadOnly ( ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addSortBy ( r'isReadOnly' , Sort . asc ) ;
} ) ;
}
QueryBuilder < Asset , Asset , QAfterSortBy > sortByIsReadOnlyDesc ( ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addSortBy ( r'isReadOnly' , Sort . desc ) ;
} ) ;
}
QueryBuilder < Asset , Asset , QAfterSortBy > sortByIsTrashed ( ) {
QueryBuilder < Asset , Asset , QAfterSortBy > sortByIsTrashed ( ) {
return QueryBuilder . apply ( this , ( query ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addSortBy ( r'isTrashed' , Sort . asc ) ;
return query . addSortBy ( r'isTrashed' , Sort . asc ) ;
@ -2546,6 +2608,30 @@ extension AssetQuerySortThenBy on QueryBuilder<Asset, Asset, QSortThenBy> {
} ) ;
} ) ;
}
}
QueryBuilder < Asset , Asset , QAfterSortBy > thenByIsOffline ( ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addSortBy ( r'isOffline' , Sort . asc ) ;
} ) ;
}
QueryBuilder < Asset , Asset , QAfterSortBy > thenByIsOfflineDesc ( ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addSortBy ( r'isOffline' , Sort . desc ) ;
} ) ;
}
QueryBuilder < Asset , Asset , QAfterSortBy > thenByIsReadOnly ( ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addSortBy ( r'isReadOnly' , Sort . asc ) ;
} ) ;
}
QueryBuilder < Asset , Asset , QAfterSortBy > thenByIsReadOnlyDesc ( ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addSortBy ( r'isReadOnly' , Sort . desc ) ;
} ) ;
}
QueryBuilder < Asset , Asset , QAfterSortBy > thenByIsTrashed ( ) {
QueryBuilder < Asset , Asset , QAfterSortBy > thenByIsTrashed ( ) {
return QueryBuilder . apply ( this , ( query ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addSortBy ( r'isTrashed' , Sort . asc ) ;
return query . addSortBy ( r'isTrashed' , Sort . asc ) ;
@ -2718,6 +2804,18 @@ extension AssetQueryWhereDistinct on QueryBuilder<Asset, Asset, QDistinct> {
} ) ;
} ) ;
}
}
QueryBuilder < Asset , Asset , QDistinct > distinctByIsOffline ( ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addDistinctBy ( r'isOffline' ) ;
} ) ;
}
QueryBuilder < Asset , Asset , QDistinct > distinctByIsReadOnly ( ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addDistinctBy ( r'isReadOnly' ) ;
} ) ;
}
QueryBuilder < Asset , Asset , QDistinct > distinctByIsTrashed ( ) {
QueryBuilder < Asset , Asset , QDistinct > distinctByIsTrashed ( ) {
return QueryBuilder . apply ( this , ( query ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addDistinctBy ( r'isTrashed' ) ;
return query . addDistinctBy ( r'isTrashed' ) ;
@ -2840,6 +2938,18 @@ extension AssetQueryProperty on QueryBuilder<Asset, Asset, QQueryProperty> {
} ) ;
} ) ;
}
}
QueryBuilder < Asset , bool , QQueryOperations > isOfflineProperty ( ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addPropertyName ( r'isOffline' ) ;
} ) ;
}
QueryBuilder < Asset , bool , QQueryOperations > isReadOnlyProperty ( ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addPropertyName ( r'isReadOnly' ) ;
} ) ;
}
QueryBuilder < Asset , bool , QQueryOperations > isTrashedProperty ( ) {
QueryBuilder < Asset , bool , QQueryOperations > isTrashedProperty ( ) {
return QueryBuilder . apply ( this , ( query ) {
return QueryBuilder . apply ( this , ( query ) {
return query . addPropertyName ( r'isTrashed' ) ;
return query . addPropertyName ( r'isTrashed' ) ;