user_prefs.proto (892B)
1 syntax = "proto3"; 2 3 option java_package = "net.taler.wallet"; 4 option java_multiple_files = true; 5 6 enum ScopeInfoType { 7 GLOBAL = 0; 8 EXCHANGE = 1; 9 AUDITOR = 2; 10 EXCHANGE_LEGACY_KEYS = 3; 11 } 12 13 message PrefsScopeInfo { 14 ScopeInfoType type = 1; 15 string currency = 2; 16 optional string url = 3; 17 optional string masterPub = 4; 18 } 19 20 enum PrefsStateFilter { 21 NONE = 0; 22 FINAL = 1; 23 NONFINAL = 2; 24 DONE = 3; 25 } 26 27 enum ViewModeType { 28 ASSETS = 0; 29 TRANSACTIONS = 1; 30 } 31 32 message PrefsViewMode { 33 ViewModeType type = 1; 34 35 // TRANSACTIONS 36 optional PrefsScopeInfo selectedScope = 2; 37 optional string searchQuery = 3; 38 optional PrefsStateFilter stateFilter = 4; 39 } 40 41 message UserPreferences { 42 optional PrefsScopeInfo selectedScope = 1; 43 optional bool actionButtonUsed = 2; 44 optional bool devModeEnabled = 3; 45 optional bool biometricLockEnabled = 4; 46 optional PrefsViewMode viewMode = 5; 47 }