30 lines
498 B
Kotlin
30 lines
498 B
Kotlin
package xyz.mtfos.tools
|
|
|
|
import android.content.Context
|
|
import android.util.Log
|
|
import org.json.JSONObject
|
|
|
|
/**
|
|
* Created by jay on 2017/7/5.
|
|
*/
|
|
|
|
open class apiObject constructor(val ctx: Context) {
|
|
private val tag: String = "API Object"
|
|
|
|
interface apicb {
|
|
fun Callback(json: JSONObject?)
|
|
}
|
|
|
|
init {
|
|
Log.d(tag, "API Object Initialized")
|
|
}
|
|
|
|
open fun getStore(){
|
|
val url:String = "${projectSet.apiUrl}/store"
|
|
|
|
}
|
|
|
|
fun send(cb: apicb) {
|
|
|
|
}
|
|
} |