File tree Expand file tree Collapse file tree 6 files changed +38
-6
lines changed
Expand file tree Collapse file tree 6 files changed +38
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,11 @@ Client client = new Client(context)
99Account account = new Account(client);
1010
1111account.updatePrefs(
12- mapOf( "a" to "b" ), // prefs
12+ mapOf(
13+ "language" to "en",
14+ "timezone" to "UTC",
15+ "darkTheme" to true
16+ ), // prefs
1317 new CoroutineCallback<>((result, error) -> {
1418 if (error != null) {
1519 error.printStackTrace();
Original file line number Diff line number Diff line change @@ -12,7 +12,13 @@ databases.createDocument(
1212 "<DATABASE_ID>", // databaseId
1313 "<COLLECTION_ID>", // collectionId
1414 "<DOCUMENT_ID>", // documentId
15- mapOf( "a" to "b" ), // data
15+ mapOf(
16+ "username" to "walter.obrien",
17+ "email" to "walter.obrien@example.com ",
18+ "fullName" to "Walter O'Brien",
19+ "age" to 30,
20+ "isAdmin" to false
21+ ), // data
1622 listOf("read("any")"), // permissions (optional)
1723 new CoroutineCallback<>((result, error) -> {
1824 if (error != null) {
Original file line number Diff line number Diff line change @@ -12,7 +12,13 @@ tablesDB.createRow(
1212 "<DATABASE_ID>", // databaseId
1313 "<TABLE_ID>", // tableId
1414 "<ROW_ID>", // rowId
15- mapOf( "a" to "b" ), // data
15+ mapOf(
16+ "username" to "walter.obrien",
17+ "email" to "walter.obrien@example.com ",
18+ "fullName" to "Walter O'Brien",
19+ "age" to 30,
20+ "isAdmin" to false
21+ ), // data
1622 listOf("read("any")"), // permissions (optional)
1723 new CoroutineCallback<>((result, error) -> {
1824 if (error != null) {
Original file line number Diff line number Diff line change @@ -9,5 +9,9 @@ val client = Client(context)
99val account = Account(client)
1010
1111val result = account.updatePrefs(
12- prefs = mapOf( "a" to "b" ),
12+ prefs = mapOf(
13+ "language" to "en",
14+ "timezone" to "UTC",
15+ "darkTheme" to true
16+ ),
1317)
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ val result = databases.createDocument(
1212 databaseId = "<DATABASE_ID>",
1313 collectionId = "<COLLECTION_ID>",
1414 documentId = "<DOCUMENT_ID>",
15- data = mapOf( "a" to "b" ),
15+ data = mapOf(
16+ "username" to "walter.obrien",
17+ "email" to "walter.obrien@example.com ",
18+ "fullName" to "Walter O'Brien",
19+ "age" to 30,
20+ "isAdmin" to false
21+ ),
1622 permissions = listOf("read("any")"), // (optional)
1723)
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ val result = tablesDB.createRow(
1212 databaseId = "<DATABASE_ID>",
1313 tableId = "<TABLE_ID>",
1414 rowId = "<ROW_ID>",
15- data = mapOf( "a" to "b" ),
15+ data = mapOf(
16+ "username" to "walter.obrien",
17+ "email" to "walter.obrien@example.com ",
18+ "fullName" to "Walter O'Brien",
19+ "age" to 30,
20+ "isAdmin" to false
21+ ),
1622 permissions = listOf("read("any")"), // (optional)
1723)
You can’t perform that action at this time.
0 commit comments