1
0

Some basic logic

This commit is contained in:
2025-04-21 17:44:40 +03:00
parent 659d362c87
commit 4c8bfdd051
6 changed files with 88 additions and 14 deletions
@@ -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) {
}