TF-624 Remove generate file cache .g

This commit is contained in:
dab246
2022-06-08 14:18:09 +07:00
committed by Dat H. Pham
parent ff5a951a37
commit 0d551984fb
7 changed files with 0 additions and 397 deletions
@@ -1,74 +0,0 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'mailbox_cache.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class MailboxCacheAdapter extends TypeAdapter<MailboxCache> {
@override
final int typeId = 1;
@override
MailboxCache read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return MailboxCache(
fields[0] as String,
name: fields[1] as String?,
parentId: fields[2] as String?,
role: fields[3] as String?,
sortOrder: fields[4] as int?,
totalEmails: fields[5] as int?,
unreadEmails: fields[6] as int?,
totalThreads: fields[7] as int?,
unreadThreads: fields[8] as int?,
myRights: fields[9] as MailboxRightsCache?,
isSubscribed: fields[10] as bool?,
lastOpened: fields[11] as DateTime?,
);
}
@override
void write(BinaryWriter writer, MailboxCache obj) {
writer
..writeByte(12)
..writeByte(0)
..write(obj.id)
..writeByte(1)
..write(obj.name)
..writeByte(2)
..write(obj.parentId)
..writeByte(3)
..write(obj.role)
..writeByte(4)
..write(obj.sortOrder)
..writeByte(5)
..write(obj.totalEmails)
..writeByte(6)
..write(obj.unreadEmails)
..writeByte(7)
..write(obj.totalThreads)
..writeByte(8)
..write(obj.unreadThreads)
..writeByte(9)
..write(obj.myRights)
..writeByte(10)
..write(obj.isSubscribed)
..writeByte(11)
..write(obj.lastOpened);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is MailboxCacheAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}
@@ -1,65 +0,0 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'mailbox_rights_cache.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class MailboxRightsCacheAdapter extends TypeAdapter<MailboxRightsCache> {
@override
final int typeId = 2;
@override
MailboxRightsCache read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return MailboxRightsCache(
fields[0] as bool,
fields[1] as bool,
fields[2] as bool,
fields[3] as bool,
fields[4] as bool,
fields[5] as bool,
fields[6] as bool,
fields[7] as bool,
fields[8] as bool,
);
}
@override
void write(BinaryWriter writer, MailboxRightsCache obj) {
writer
..writeByte(9)
..writeByte(0)
..write(obj.mayReadItems)
..writeByte(1)
..write(obj.mayAddItems)
..writeByte(2)
..write(obj.mayRemoveItems)
..writeByte(3)
..write(obj.maySetSeen)
..writeByte(4)
..write(obj.maySetKeywords)
..writeByte(5)
..write(obj.mayCreateChild)
..writeByte(6)
..write(obj.mayRename)
..writeByte(7)
..write(obj.mayDelete)
..writeByte(8)
..write(obj.maySubmit);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is MailboxRightsCacheAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}
@@ -1,44 +0,0 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'state_cache.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class StateCacheAdapter extends TypeAdapter<StateCache> {
@override
final int typeId = 3;
@override
StateCache read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return StateCache(
fields[0] as StateType,
fields[1] as String,
);
}
@override
void write(BinaryWriter writer, StateCache obj) {
writer
..writeByte(2)
..writeByte(0)
..write(obj.type)
..writeByte(1)
..write(obj.state);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is StateCacheAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}
@@ -1,46 +0,0 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'state_type.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class StateTypeAdapter extends TypeAdapter<StateType> {
@override
final int typeId = 4;
@override
StateType read(BinaryReader reader) {
switch (reader.readByte()) {
case 0:
return StateType.mailbox;
case 1:
return StateType.email;
default:
return StateType.mailbox;
}
}
@override
void write(BinaryWriter writer, StateType obj) {
switch (obj) {
case StateType.mailbox:
writer.writeByte(0);
break;
case StateType.email:
writer.writeByte(1);
break;
}
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is StateTypeAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}