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;
6
6
Client client = new Client()
7
7
.setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
8
8
.setProject("5df5acd0d48c2") // Your project ID
9
- .setSession(" "); // The user session to authenticate with
9
+ .setKey("919c2d18fb5d4...a2ae413da83346ad2 "); // Your secret API key
10
10
11
11
Users users = new Users(client);
12
12
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import io.appwrite.services.Users;
5
5
Client client = new Client()
6
6
.setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
7
7
.setProject("5df5acd0d48c2") // Your project ID
8
- .setSession(" "); // The user session to authenticate with
8
+ .setKey("919c2d18fb5d4...a2ae413da83346ad2 "); // Your secret API key
9
9
10
10
Users users = new Users(client);
11
11
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import io.appwrite.enums.AuthenticatorProvider
6
6
val client = Client()
7
7
.setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
8
8
.setProject("5df5acd0d48c2") // Your project ID
9
- .setSession(" ") // The user session to authenticate with
9
+ .setKey("919c2d18fb5d4...a2ae413da83346ad2 ") // Your secret API key
10
10
11
11
val users = Users(client)
12
12
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import io.appwrite.services.Users
5
5
val client = Client()
6
6
.setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
7
7
.setProject("5df5acd0d48c2") // Your project ID
8
- .setSession(" ") // The user session to authenticate with
8
+ .setKey("919c2d18fb5d4...a2ae413da83346ad2 ") // Your secret API key
9
9
10
10
val users = Users(client)
11
11
Original file line number Diff line number Diff line change @@ -85,12 +85,6 @@ data class Message(
85
85
@SerializedName(" status" )
86
86
val status : String ,
87
87
88
- /* *
89
- * Message description.
90
- */
91
- @SerializedName(" description" )
92
- var description : String? ,
93
-
94
88
) {
95
89
fun toMap (): Map <String , Any > = mapOf (
96
90
" \$ id" to id as Any ,
@@ -106,7 +100,6 @@ data class Message(
106
100
" deliveredTotal" to deliveredTotal as Any ,
107
101
" data" to data as Any ,
108
102
" status" to status as Any ,
109
- " description" to description as Any ,
110
103
)
111
104
112
105
companion object {
@@ -128,7 +121,6 @@ data class Message(
128
121
deliveredTotal = (map[" deliveredTotal" ] as Number ).toLong(),
129
122
data = map[" data" ] as Any ,
130
123
status = map[" status" ] as String ,
131
- description = map[" description" ] as ? String? ,
132
124
)
133
125
}
134
126
}
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ data class Session(
161
161
* Returns a list of active session factors.
162
162
*/
163
163
@SerializedName(" factors" )
164
- val factors : Long ,
164
+ val factors : List < Any > ,
165
165
166
166
/* *
167
167
* Secret used to authenticate the user. Only included if the request was made with an API key
@@ -231,7 +231,7 @@ data class Session(
231
231
countryCode = map[" countryCode" ] as String ,
232
232
countryName = map[" countryName" ] as String ,
233
233
current = map[" current" ] as Boolean ,
234
- factors = ( map[" factors" ] as Number ).toLong() ,
234
+ factors = map[" factors" ] as List < Any > ,
235
235
secret = map[" secret" ] as String ,
236
236
)
237
237
}
Original file line number Diff line number Diff line change @@ -37,20 +37,13 @@ data class Topic(
37
37
@SerializedName(" total" )
38
38
val total : Long ,
39
39
40
- /* *
41
- * Description of the topic.
42
- */
43
- @SerializedName(" description" )
44
- var description : String? ,
45
-
46
40
) {
47
41
fun toMap (): Map <String , Any > = mapOf (
48
42
" \$ id" to id as Any ,
49
43
" \$ createdAt" to createdAt as Any ,
50
44
" \$ updatedAt" to updatedAt as Any ,
51
45
" name" to name as Any ,
52
46
" total" to total as Any ,
53
- " description" to description as Any ,
54
47
)
55
48
56
49
companion object {
@@ -64,7 +57,6 @@ data class Topic(
64
57
updatedAt = map[" \$ updatedAt" ] as String ,
65
58
name = map[" name" ] as String ,
66
59
total = (map[" total" ] as Number ).toLong(),
67
- description = map[" description" ] as ? String? ,
68
60
)
69
61
}
70
62
}
You can’t perform that action at this time.
0 commit comments