feat: add LiteDB => Sqlite importer
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using LiteDB;
|
||||
|
||||
namespace ChatTwo.Code;
|
||||
|
||||
internal class ChatCode
|
||||
@@ -19,6 +21,15 @@ internal class ChatCode
|
||||
Target = SourceFrom(7);
|
||||
}
|
||||
|
||||
[BsonCtor] // Used by LegacyMessageImporter
|
||||
public ChatCode(ushort raw, ChatType type, ChatSource source, ChatSource target)
|
||||
{
|
||||
Raw = raw;
|
||||
Type = type;
|
||||
Source = source;
|
||||
Target = target;
|
||||
}
|
||||
|
||||
internal ChatType Parent() => Type switch
|
||||
{
|
||||
ChatType.Say => ChatType.Say,
|
||||
|
||||
Reference in New Issue
Block a user