Some basic logic
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
/*
|
||||
* Created by sweetbread
|
||||
* Copyright (c) 2025. All rights reserved.
|
||||
*/
|
||||
|
||||
package ru.risdeveau.geotracker
|
||||
|
||||
import io.ktor.client.*
|
||||
@@ -21,7 +26,7 @@ data class GeoData(
|
||||
|
||||
|
||||
/**
|
||||
* Function to validate [baseurl]
|
||||
* Validate [baseurl] and check accessibility to a server
|
||||
* @return true if baseurl is valid
|
||||
*/
|
||||
suspend fun health(baseurl: String): Boolean {
|
||||
@@ -29,4 +34,8 @@ suspend fun health(baseurl: String): Boolean {
|
||||
return r.status == HttpStatusCode.OK
|
||||
}
|
||||
|
||||
fun sendGeo(baseurl: String, )
|
||||
/**
|
||||
* Send data to a server
|
||||
*/
|
||||
fun sendGeo(baseurl: String, data: GeoData) {
|
||||
}
|
||||
Reference in New Issue
Block a user