Skip to content

Commit

Permalink
Merge pull request #29 from rami3sam/migrate_kotlin
Browse files Browse the repository at this point in the history
Migrate kotlin
  • Loading branch information
rami3sam authored Oct 24, 2022
2 parents 70938ef + 2a8f085 commit c10fb65
Show file tree
Hide file tree
Showing 12 changed files with 1,082 additions and 734 deletions.
35 changes: 0 additions & 35 deletions lib/src/main/java/com/tuti/Library.java

This file was deleted.

33 changes: 33 additions & 0 deletions lib/src/main/java/com/tuti/Library.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package com.tuti

import com.tuti.api.TutiApiClient
import com.tuti.api.authentication.SignInRequest
import com.tuti.api.authentication.SignInResponse
import com.tuti.api.data.ResponseData
import com.tuti.api.data.TutiResponse

object Library {
var jwt: String? = null

@JvmStatic
fun main(args: Array<String>) {
val client = TutiApiClient()
client.isSingleThreaded = true
val credentials = SignInRequest("0129751986", "Rami1111.")
client!!.SignIn(
credentials,
{ signInResponse: SignInResponse ->
run {
println(signInResponse.user.mobileNumber)
}
}) { objectReceived: TutiResponse?, exception: Exception? ->
run {

}

}
}
}
443 changes: 0 additions & 443 deletions lib/src/main/java/com/tuti/api/TutiApiClient.java

This file was deleted.

Loading

0 comments on commit c10fb65

Please sign in to comment.