taler-android

Android apps for GNU Taler (wallet, PoS, cashier)
Log | Files | Refs | README | LICENSE

user_prefs.proto (831B)


      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 }
     11 
     12 message PrefsScopeInfo {
     13   ScopeInfoType type = 1;
     14   string currency = 2;
     15   optional string url = 3;
     16 }
     17 
     18 enum PrefsStateFilter {
     19   NONE = 0;
     20   FINAL = 1;
     21   NONFINAL = 2;
     22   DONE = 3;
     23 }
     24 
     25 enum ViewModeType {
     26   ASSETS = 0;
     27   TRANSACTIONS = 1;
     28 }
     29 
     30 message PrefsViewMode {
     31   ViewModeType type = 1;
     32 
     33   // TRANSACTIONS
     34   optional PrefsScopeInfo selectedScope = 2;
     35   optional string searchQuery = 3;
     36   optional PrefsStateFilter stateFilter = 4;
     37 }
     38 
     39 message UserPreferences {
     40   optional PrefsScopeInfo selectedScope = 1;
     41   optional bool actionButtonUsed = 2;
     42   optional bool devModeEnabled = 3;
     43   optional bool biometricLockEnabled = 4;
     44   optional PrefsViewMode viewMode = 5;
     45 }