mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
use JSON-RPC for addAccount
This commit is contained in:
parent
ab05222c32
commit
c1a49332d0
6 changed files with 22 additions and 12 deletions
|
@ -125,6 +125,10 @@ public class Rpc {
|
|||
return getResult("get_account_file_size", accountId).getAsInt();
|
||||
}
|
||||
|
||||
public int addAccount() throws RpcException {
|
||||
return getResult("add_account").getAsInt();
|
||||
}
|
||||
|
||||
private static class Request {
|
||||
private final String jsonrpc = "2.0";
|
||||
public final String method;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue