File tree Expand file tree Collapse file tree 7 files changed +6
-22
lines changed
src/main/kotlin/io/appwrite/models Expand file tree Collapse file tree 7 files changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import io.appwrite.enums.AuthenticatorProvider;
66Client client = new Client()
77 .setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
88 .setProject("5df5acd0d48c2") // Your project ID
9- .setSession(" "); // The user session to authenticate with
9+ .setKey("919c2d18fb5d4...a2ae413da83346ad2 "); // Your secret API key
1010
1111Users users = new Users(client);
1212
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import io.appwrite.services.Users;
55Client client = new Client()
66 .setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
77 .setProject("5df5acd0d48c2") // Your project ID
8- .setSession(" "); // The user session to authenticate with
8+ .setKey("919c2d18fb5d4...a2ae413da83346ad2 "); // Your secret API key
99
1010Users users = new Users(client);
1111
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import io.appwrite.enums.AuthenticatorProvider
66val client = Client()
77 .setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
88 .setProject("5df5acd0d48c2") // Your project ID
9- .setSession(" ") // The user session to authenticate with
9+ .setKey("919c2d18fb5d4...a2ae413da83346ad2 ") // Your secret API key
1010
1111val users = Users(client)
1212
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import io.appwrite.services.Users
55val client = Client()
66 .setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
77 .setProject("5df5acd0d48c2") // Your project ID
8- .setSession(" ") // The user session to authenticate with
8+ .setKey("919c2d18fb5d4...a2ae413da83346ad2 ") // Your secret API key
99
1010val users = Users(client)
1111
Original file line number Diff line number Diff line change @@ -85,12 +85,6 @@ data class Message(
8585 @SerializedName(" status" )
8686 val status : String ,
8787
88- /* *
89- * Message description.
90- */
91- @SerializedName(" description" )
92- var description : String? ,
93-
9488) {
9589 fun toMap (): Map <String , Any > = mapOf (
9690 " \$ id" to id as Any ,
@@ -106,7 +100,6 @@ data class Message(
106100 " deliveredTotal" to deliveredTotal as Any ,
107101 " data" to data as Any ,
108102 " status" to status as Any ,
109- " description" to description as Any ,
110103 )
111104
112105 companion object {
@@ -128,7 +121,6 @@ data class Message(
128121 deliveredTotal = (map[" deliveredTotal" ] as Number ).toLong(),
129122 data = map[" data" ] as Any ,
130123 status = map[" status" ] as String ,
131- description = map[" description" ] as ? String? ,
132124 )
133125 }
134126}
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ data class Session(
161161 * Returns a list of active session factors.
162162 */
163163 @SerializedName(" factors" )
164- val factors : Long ,
164+ val factors : List < Any > ,
165165
166166 /* *
167167 * Secret used to authenticate the user. Only included if the request was made with an API key
@@ -231,7 +231,7 @@ data class Session(
231231 countryCode = map[" countryCode" ] as String ,
232232 countryName = map[" countryName" ] as String ,
233233 current = map[" current" ] as Boolean ,
234- factors = ( map[" factors" ] as Number ).toLong() ,
234+ factors = map[" factors" ] as List < Any > ,
235235 secret = map[" secret" ] as String ,
236236 )
237237 }
Original file line number Diff line number Diff line change @@ -37,20 +37,13 @@ data class Topic(
3737 @SerializedName(" total" )
3838 val total : Long ,
3939
40- /* *
41- * Description of the topic.
42- */
43- @SerializedName(" description" )
44- var description : String? ,
45-
4640) {
4741 fun toMap (): Map <String , Any > = mapOf (
4842 " \$ id" to id as Any ,
4943 " \$ createdAt" to createdAt as Any ,
5044 " \$ updatedAt" to updatedAt as Any ,
5145 " name" to name as Any ,
5246 " total" to total as Any ,
53- " description" to description as Any ,
5447 )
5548
5649 companion object {
@@ -64,7 +57,6 @@ data class Topic(
6457 updatedAt = map[" \$ updatedAt" ] as String ,
6558 name = map[" name" ] as String ,
6659 total = (map[" total" ] as Number ).toLong(),
67- description = map[" description" ] as ? String? ,
6860 )
6961 }
7062}
You can’t perform that action at this time.
0 commit comments