mirror of
https://github.com/immich-app/immich.git
synced 2025-03-01 15:11:21 +01:00

* Added return type for oauth/callback * Remove console.log * Redirect app * Wording * Added loading state change * Added OAuth login on mobile * Return correct status for correct redirection * Auto discovery OAuth Login
53 lines
1.5 KiB
Dart
53 lines
1.5 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'hive_saved_login_info.model.dart';
|
|
|
|
// **************************************************************************
|
|
// TypeAdapterGenerator
|
|
// **************************************************************************
|
|
|
|
class HiveSavedLoginInfoAdapter extends TypeAdapter<HiveSavedLoginInfo> {
|
|
@override
|
|
final int typeId = 0;
|
|
|
|
@override
|
|
HiveSavedLoginInfo read(BinaryReader reader) {
|
|
final numOfFields = reader.readByte();
|
|
final fields = <int, dynamic>{
|
|
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
|
|
};
|
|
return HiveSavedLoginInfo(
|
|
email: fields[0] as String,
|
|
password: fields[1] as String,
|
|
serverUrl: fields[2] as String,
|
|
isSaveLogin: fields[3] == null ? false : fields[3] as bool,
|
|
accessToken: fields[4] == null ? '' : fields[4] as String,
|
|
);
|
|
}
|
|
|
|
@override
|
|
void write(BinaryWriter writer, HiveSavedLoginInfo obj) {
|
|
writer
|
|
..writeByte(5)
|
|
..writeByte(0)
|
|
..write(obj.email)
|
|
..writeByte(1)
|
|
..write(obj.password)
|
|
..writeByte(2)
|
|
..write(obj.serverUrl)
|
|
..writeByte(3)
|
|
..write(obj.isSaveLogin)
|
|
..writeByte(4)
|
|
..write(obj.accessToken);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => typeId.hashCode;
|
|
|
|
@override
|
|
bool operator ==(Object other) =>
|
|
identical(this, other) ||
|
|
other is HiveSavedLoginInfoAdapter &&
|
|
runtimeType == other.runtimeType &&
|
|
typeId == other.typeId;
|
|
}
|