feat: Help with serializing and deserializing the BTVT manager

This commit is contained in:
2022-09-11 13:33:45 +02:00
parent 12e09947f6
commit ff52c82039
6 changed files with 172 additions and 3 deletions

View File

@@ -16,4 +16,7 @@ abstract class TrustManager {
/// Mark the device with id [deviceId] of Jid [jid] as enabled if [enabled] is true or as disabled
/// if [enabled] is false.
Future<void> setEnabled(String jid, int deviceId, bool enabled);
/// Serialize the trust manager to JSON.
Future<Map<String, dynamic>> toJson();
}