Skip to content

Commit 354ebb7

Browse files
committed
Appwrite 1.5 support
1 parent 0468a1b commit 354ebb7

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

library/src/main/java/io/appwrite/services/Account.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ class Account(client: Client) : Service(client) {
378378
* @return [io.appwrite.models.MfaType]
379379
*/
380380
suspend fun createMfaAuthenticator(
381-
type: AuthenticatorType,
381+
type: io.appwrite.enums.AuthenticatorType,
382382
): io.appwrite.models.MfaType {
383383
val apiPath = "/account/mfa/authenticators/{type}"
384384
.replace("{type}", type.value)
@@ -413,7 +413,7 @@ class Account(client: Client) : Service(client) {
413413
* @return [io.appwrite.models.User<T>]
414414
*/
415415
suspend fun <T> updateMfaAuthenticator(
416-
type: AuthenticatorType,
416+
type: io.appwrite.enums.AuthenticatorType,
417417
otp: String,
418418
nestedType: Class<T>,
419419
): io.appwrite.models.User<T> {
@@ -451,7 +451,7 @@ class Account(client: Client) : Service(client) {
451451
*/
452452
@Throws(AppwriteException::class)
453453
suspend fun updateMfaAuthenticator(
454-
type: AuthenticatorType,
454+
type: io.appwrite.enums.AuthenticatorType,
455455
otp: String,
456456
): io.appwrite.models.User<Map<String, Any>> = updateMfaAuthenticator(
457457
type,
@@ -469,7 +469,7 @@ class Account(client: Client) : Service(client) {
469469
* @return [io.appwrite.models.User<T>]
470470
*/
471471
suspend fun <T> deleteMfaAuthenticator(
472-
type: AuthenticatorType,
472+
type: io.appwrite.enums.AuthenticatorType,
473473
otp: String,
474474
nestedType: Class<T>,
475475
): io.appwrite.models.User<T> {
@@ -507,7 +507,7 @@ class Account(client: Client) : Service(client) {
507507
*/
508508
@Throws(AppwriteException::class)
509509
suspend fun deleteMfaAuthenticator(
510-
type: AuthenticatorType,
510+
type: io.appwrite.enums.AuthenticatorType,
511511
otp: String,
512512
): io.appwrite.models.User<Map<String, Any>> = deleteMfaAuthenticator(
513513
type,
@@ -524,7 +524,7 @@ class Account(client: Client) : Service(client) {
524524
* @return [io.appwrite.models.MfaChallenge]
525525
*/
526526
suspend fun createMfaChallenge(
527-
factor: AuthenticationFactor,
527+
factor: io.appwrite.enums.AuthenticationFactor,
528528
): io.appwrite.models.MfaChallenge {
529529
val apiPath = "/account/mfa/challenge"
530530

@@ -1215,7 +1215,7 @@ class Account(client: Client) : Service(client) {
12151215
@JvmOverloads
12161216
suspend fun createOAuth2Session(
12171217
activity: ComponentActivity,
1218-
provider: OAuthProvider,
1218+
provider: io.appwrite.enums.OAuthProvider,
12191219
success: String? = null,
12201220
failure: String? = null,
12211221
scopes: List<String>? = null,
@@ -1694,7 +1694,7 @@ class Account(client: Client) : Service(client) {
16941694
@JvmOverloads
16951695
suspend fun createOAuth2Token(
16961696
activity: ComponentActivity,
1697-
provider: OAuthProvider,
1697+
provider: io.appwrite.enums.OAuthProvider,
16981698
success: String? = null,
16991699
failure: String? = null,
17001700
scopes: List<String>? = null,

library/src/main/java/io/appwrite/services/Avatars.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Avatars(client: Client) : Service(client) {
3030
*/
3131
@JvmOverloads
3232
suspend fun getBrowser(
33-
code: Browser,
33+
code: io.appwrite.enums.Browser,
3434
width: Long? = null,
3535
height: Long? = null,
3636
quality: Long? = null,
@@ -66,7 +66,7 @@ class Avatars(client: Client) : Service(client) {
6666
*/
6767
@JvmOverloads
6868
suspend fun getCreditCard(
69-
code: CreditCard,
69+
code: io.appwrite.enums.CreditCard,
7070
width: Long? = null,
7171
height: Long? = null,
7272
quality: Long? = null,
@@ -128,7 +128,7 @@ class Avatars(client: Client) : Service(client) {
128128
*/
129129
@JvmOverloads
130130
suspend fun getFlag(
131-
code: Flag,
131+
code: io.appwrite.enums.Flag,
132132
width: Long? = null,
133133
height: Long? = null,
134134
quality: Long? = null,

library/src/main/java/io/appwrite/services/Functions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Functions(client: Client) : Service(client) {
7575
body: String? = null,
7676
async: Boolean? = null,
7777
path: String? = null,
78-
method: ExecutionMethod? = null,
78+
method: io.appwrite.enums.ExecutionMethod? = null,
7979
headers: Any? = null,
8080
): io.appwrite.models.Execution {
8181
val apiPath = "/functions/{functionId}/executions"

library/src/main/java/io/appwrite/services/Storage.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,15 @@ class Storage(client: Client) : Service(client) {
275275
fileId: String,
276276
width: Long? = null,
277277
height: Long? = null,
278-
gravity: ImageGravity? = null,
278+
gravity: io.appwrite.enums.ImageGravity? = null,
279279
quality: Long? = null,
280280
borderWidth: Long? = null,
281281
borderColor: String? = null,
282282
borderRadius: Long? = null,
283283
opacity: Double? = null,
284284
rotation: Long? = null,
285285
background: String? = null,
286-
output: ImageFormat? = null,
286+
output: io.appwrite.enums.ImageFormat? = null,
287287
): ByteArray {
288288
val apiPath = "/storage/buckets/{bucketId}/files/{fileId}/preview"
289289
.replace("{bucketId}", bucketId)

0 commit comments

Comments
 (0)