Exemple #1
0
 def get_all_config(self) -> bytes:
     input = pb.Empty()
     output = pb.Json()
     output.ParseFromString(self._run_command(113, input))
     return output.json
Exemple #2
0
 def i18n_resources(self) -> bytes:
     input = pb.Empty()
     output = pb.Json()
     output.ParseFromString(self._run_command(102, input))
     return output.json
Exemple #3
0
 def get_config_json(self, val: str) -> bytes:
     input = pb.String(val=val)
     output = pb.Json()
     output.ParseFromString(self._run_command(110, input))
     return output.json
Exemple #4
0
 def get_notetype_legacy(self, ntid: int) -> bytes:
     input = pb.NoteTypeID(ntid=ntid)
     output = pb.Json()
     output.ParseFromString(self._run_command(82, input))
     return output.json
Exemple #5
0
 def sync_server_method(self, *, method: pb.SyncServerMethodIn.Method.V,
                        data: bytes) -> bytes:
     input = pb.SyncServerMethodIn(method=method, data=data)
     output = pb.Json()
     output.ParseFromString(self._run_command(99, input))
     return output.json
Exemple #6
0
 def new_deck_config_legacy(self) -> bytes:
     input = pb.Empty()
     output = pb.Json()
     output.ParseFromString(self._run_command(61, input))
     return output.json
Exemple #7
0
 def get_stock_notetype_legacy(self,
                               kind: pb.StockNoteType.Kind.V) -> bytes:
     input = pb.StockNoteType(kind=kind)
     output = pb.Json()
     output.ParseFromString(self._run_command(81, input))
     return output.json
Exemple #8
0
 def get_deck_config_legacy(self, dcid: int) -> bytes:
     input = pb.DeckConfigID(dcid=dcid)
     output = pb.Json()
     output.ParseFromString(self._run_command(60, input))
     return output.json
Exemple #9
0
 def new_deck_legacy(self, val: bool) -> bytes:
     input = pb.Bool(val=val)
     output = pb.Json()
     output.ParseFromString(self._run_command(55, input))
     return output.json
Exemple #10
0
 def get_deck_legacy(self, did: int) -> bytes:
     input = pb.DeckID(did=did)
     output = pb.Json()
     output.ParseFromString(self._run_command(53, input))
     return output.json
Exemple #11
0
 def get_all_decks_legacy(self) -> bytes:
     input = pb.Empty()
     output = pb.Json()
     output.ParseFromString(self._run_command(51, input))
     return output.json
Exemple #12
0
 def deck_tree_legacy(self) -> bytes:
     input = pb.Empty()
     output = pb.Json()
     output.ParseFromString(self._run_command(50, input))
     return output.json