user_prefs.proto (1034B)
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 // DEPRECATED 28 enum ViewModeType { 29 ASSETS = 0; 30 TRANSACTIONS = 1; 31 } 32 33 // DEPRECATED 34 message PrefsViewMode { 35 ViewModeType type = 1; 36 37 // TRANSACTIONS 38 optional PrefsScopeInfo selectedScope = 2; 39 optional string searchQuery = 3; 40 optional PrefsStateFilter stateFilter = 4; 41 } 42 43 message PrefsViewMode2 { 44 optional PrefsScopeInfo selectedScope = 1; 45 } 46 47 message UserPreferences { 48 optional PrefsScopeInfo selectedScope = 1; 49 optional bool actionButtonUsed = 2; 50 optional bool devModeEnabled = 3; 51 optional bool biometricLockEnabled = 4; 52 optional PrefsViewMode viewMode = 5; 53 optional PrefsViewMode2 viewMode2 = 6; 54 }