We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a32e24a commit e6d64e3Copy full SHA for e6d64e3
src/SDK/Language/Kotlin.php
@@ -288,6 +288,12 @@ public function getFiles()
288
'template' => '/kotlin/src/main/java/io/appwrite/extensions/JsonExtensions.kt.twig',
289
'minify' => false,
290
],
291
+ [
292
+ 'scope' => 'default',
293
+ 'destination' => '/src/main/java/{{ sdk.namespace | caseSlash }}/models/Error.kt',
294
+ 'template' => '/kotlin/src/main/java/io/appwrite/models/Error.kt.twig',
295
+ 'minify' => false,
296
+ ],
297
[
298
'scope' => 'default',
299
'destination' => '/build.gradle',
templates/kotlin/src/main/java/io/appwrite/models/Error.kt.twig
@@ -0,0 +1,6 @@
1
+package {{ sdk.namespace | caseDot }}.models
2
+
3
+data class Error(
4
+ val message: String,
5
+ val code: Int
6
+)
0 commit comments