|
| 1 | +package dev.teamhub.firebase.functions |
| 2 | + |
| 3 | +import dev.teamhub.firebase.Firebase |
| 4 | +import dev.teamhub.firebase.FirebaseApp |
| 5 | +import dev.teamhub.firebase.FirebaseException |
| 6 | +import kotlinx.serialization.DeserializationStrategy |
| 7 | +import kotlinx.serialization.SerializationStrategy |
| 8 | +import kotlinx.serialization.ImplicitReflectionSerializer |
| 9 | + |
| 10 | +actual class FirebaseFunctions { |
| 11 | + actual fun httpsCallable( |
| 12 | + name: String, |
| 13 | + timeout: Long? |
| 14 | + ): HttpsCallableReference { |
| 15 | + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. |
| 16 | + } |
| 17 | +} |
| 18 | + |
| 19 | +actual class HttpsCallableReference { |
| 20 | + @ImplicitReflectionSerializer |
| 21 | + actual suspend inline fun <reified T> call(data: T): HttpsCallableResult { |
| 22 | + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. |
| 23 | + } |
| 24 | + |
| 25 | + actual suspend inline fun <reified T> call( |
| 26 | + strategy: SerializationStrategy<T>, |
| 27 | + data: T |
| 28 | + ): HttpsCallableResult { |
| 29 | + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. |
| 30 | + } |
| 31 | + |
| 32 | + actual suspend fun call(): HttpsCallableResult { |
| 33 | + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. |
| 34 | + } |
| 35 | +} |
| 36 | + |
| 37 | +actual class HttpsCallableResult { |
| 38 | + @ImplicitReflectionSerializer |
| 39 | + actual inline fun <reified T> data(): T { |
| 40 | + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. |
| 41 | + } |
| 42 | + |
| 43 | + actual inline fun <reified T> data(strategy: DeserializationStrategy<T>): T { |
| 44 | + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. |
| 45 | + } |
| 46 | +} |
| 47 | + |
| 48 | +/** Returns the [FirebaseFunctions] instance of the default [FirebaseApp]. */ |
| 49 | +actual val Firebase.functions: FirebaseFunctions |
| 50 | + get() = kotlin.TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates. |
| 51 | + |
| 52 | +/** Returns the [FirebaseFunctions] instance of a given [region]. */ |
| 53 | +actual fun Firebase.functions(region: String): FirebaseFunctions { |
| 54 | + kotlin.TODO("not implemented") //To change body of created functions use File | Settings | File Templates. |
| 55 | +} |
| 56 | + |
| 57 | +/** Returns the [FirebaseFunctions] instance of a given [FirebaseApp]. */ |
| 58 | +actual fun Firebase.functions(app: FirebaseApp): FirebaseFunctions { |
| 59 | + kotlin.TODO("not implemented") //To change body of created functions use File | Settings | File Templates. |
| 60 | +} |
| 61 | + |
| 62 | +/** Returns the [FirebaseFunctions] instance of a given [FirebaseApp] and [region]. */ |
| 63 | +actual fun Firebase.functions( |
| 64 | + app: FirebaseApp, |
| 65 | + region: String |
| 66 | +): FirebaseFunctions { |
| 67 | + kotlin.TODO("not implemented") //To change body of created functions use File | Settings | File Templates. |
| 68 | +} |
| 69 | + |
| 70 | +actual class FirebaseFunctionsException : FirebaseException() |
0 commit comments