refactor: refactor the configs to implement a parent with common functionality across config base and config sig

This commit is contained in:
0x330a
2023-09-17 23:00:40 +10:00
parent 915fa5bc2b
commit b5b248a6ec
6 changed files with 130 additions and 34 deletions

View File

@@ -1,7 +1,14 @@
package org.session.libsignal.utilities
object Namespace {
const val ALL = "all"
const val DEFAULT = 0
const val UNAUTHENTICATED_CLOSED_GROUP = -10
fun ALL() = "all"
fun UNAUTHENTICATED_CLOSED_GROUP() = -10
external fun DEFAULT(): Int
external fun USER_PROFILE(): Int
external fun CONTACTS(): Int
external fun CONVO_INFO_VOLATILE(): Int
external fun GROUPS(): Int
external fun CLOSED_GROUP_INFO(): Int
external fun CLOSED_GROUP_MEMBERS(): Int
external fun ENCRYPTION_KEYS(): Int
}