mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Avoid serializing default properties in databases
Less data to read/write is always better.
This commit is contained in:
@@ -182,5 +182,12 @@ namespace ArchiSteamFarm {
|
||||
FileSemaphore.Release();
|
||||
}
|
||||
}
|
||||
|
||||
// ReSharper disable UnusedMember.Global
|
||||
public bool ShouldSerializeCellID() => CellID != 0;
|
||||
public bool ShouldSerializePackagesData() => PackagesData.Count > 0;
|
||||
public bool ShouldSerializeServerListProvider() => ServerListProvider.ShouldSerializeServerRecords();
|
||||
|
||||
// ReSharper restore UnusedMember.Global
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user